[vlc-devel] [PATCH 2/2] httpd: skip the accept if the socket has errors
Steve Lhomme
robux4 at videolabs.io
Mon Nov 30 17:35:59 CET 2015
---
src/network/httpd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/network/httpd.c b/src/network/httpd.c
index cfaac4b..124d448 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -2032,7 +2032,7 @@ static void httpdLoop(httpd_host_t *host)
assert (fd == host->fds[nfd]);
- if (ufd[nfd].revents == 0)
+ if (ufd[nfd].revents == 0 || ufd[nfd].revents & (POLLERR|POLLHUP) != 0)
continue;
/* */
--
2.6.3
More information about the vlc-devel
mailing list