git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2754
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
- /* 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);
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));
}
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;
}
XBT_OUT;
return chunk_pos;
}