check select errors better

This commit is contained in:
Benjamin Sergeant committed 2019-01-07 11:18:00 -08:00
1 parent 76f196206b
commit 8a0afef825
5 files changed
+55 -43

No files matched your search

+1 -2
View File
@@ -158,9 +158,8 @@ namespace ix
{
int N = (int) _rxbuf.size();
int ret;
_rxbuf.resize(N + 1500);
ret = _socket->recv((char*)&_rxbuf[0] + N, 1500);
ssize_t ret = _socket->recv((char*)&_rxbuf[0] + N, 1500);
if (ret < 0 && (_socket->getErrno() == EWOULDBLOCK ||
_socket->getErrno() == EAGAIN)) {