got);
}
}
- /* indicate to the gras_select function that there is more to read on this socket so that it does not actually select */
- sock->moredata = (bufsize != 0);
+
return got;
}
DEBUG4("New pos = %d; Still to receive = %ld of %ld. Ctn so far=(%s)",
data->in_buf.pos,size - chunk_pos,size,hexa_str((unsigned char*)chunk,chunk_pos,0));
}
-
+ /* indicate on need to the gras_select function that there is more to read on this socket so that it does not actually select */
+ sock->moredata = (data->in_buf.size > data->in_buf.pos);
+ DEBUG1("There is %smore data",(sock->moredata?"":"no "));
+
XBT_OUT;
return chunk_pos;
}