This commit is contained in:
Thulinma 2010-11-08 21:23:20 +01:00
parent 0a04e77458
commit a72dc83304
2 changed files with 17 additions and 21 deletions

View file

@ -35,6 +35,7 @@ bool ReadUntil(char * buffer, unsigned int count, unsigned int & sofar, int sock
if (sofar >= count){return true;}
int r = 0;
r = DDV_iread(buffer + sofar,count-sofar,sock);
fprintf(stderr, "Reading %i/%i, read %i, at %i\n", count, sofar, r, buffer+sofar);
if (r < 0){
if (errno != EWOULDBLOCK){
All_Hell_Broke_Loose = true;