Meer debugging
This commit is contained in:
parent
0d7882f68b
commit
4c6f17cdba
1 changed files with 4 additions and 2 deletions
|
@ -36,8 +36,10 @@ bool ReadUntil(char * buffer, unsigned int count, unsigned int & sofar, int sock
|
||||||
int r = 0;
|
int r = 0;
|
||||||
r = DDV_iread(buffer + sofar,count-sofar,sock);
|
r = DDV_iread(buffer + sofar,count-sofar,sock);
|
||||||
if (r < 0){
|
if (r < 0){
|
||||||
All_Hell_Broke_Loose = true;
|
if (errno != EWOULDBLOCK){
|
||||||
fprintf(stderr, "ReadUntil fail: %s. All Hell Broke Loose!\n", strerror(errno));
|
All_Hell_Broke_Loose = true;
|
||||||
|
fprintf(stderr, "ReadUntil fail: %s. All Hell Broke Loose!\n", strerror(errno));
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
sofar += r;
|
sofar += r;
|
||||||
|
|
Loading…
Add table
Reference in a new issue