DEV: tcploop: do not report an error on POLLERR
Actually this breaks certain client tests where the server closes with
RST, it prevents from reading the final data so better not abort on
that.
diff --git a/dev/tcploop/tcploop.c b/dev/tcploop/tcploop.c
index 9956835..e875258 100644
--- a/dev/tcploop/tcploop.c
+++ b/dev/tcploop/tcploop.c
@@ -306,7 +306,7 @@
}
/* waits up to <ms> milliseconds on fd <fd> for events <events> (POLLIN|POLLRDHUP|POLLOUT).
- * returns poll's status, or -2 if the poller sets POLLERR.
+ * returns poll's status.
*/
int wait_on_fd(int fd, int events, int ms)
{
@@ -319,8 +319,6 @@
ret = poll(&pollfd, 1, ms);
} while (ret == -1 && errno == EINTR);
- if (ret == 1 && pollfd.revents & POLLERR)
- ret = -2;
return ret;
}