Xuefer - 2009-11-11

recv() return rc <= 0 that make the flow goest to rc=errno, i'm not sure why but errno is zero. why not simply check rc and break?
while ((conn->datadone != conn->datalen)) {
.......
else {
rc = errno;
if (errno is not ewouldblock nor eagain) break;
showdebugmsg();
}
}