bufsize -= status;
got += status;
} else {
- if (got)
- THROW1(system_error,0,"Socket closed by remote side (got %d bytes before this)",
- got);
- else
- return 0; /* Ok, my pal left. I can handle it. */
+ THROW1(system_error,0,"Socket closed by remote side (got %d bytes before this)",
+ 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;
}