]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
select: stop treating POLLRDBAND as an error
authorDaniel Stenberg <daniel@haxx.se>
Thu, 23 Feb 2023 11:19:26 +0000 (12:19 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 23 Feb 2023 22:41:44 +0000 (23:41 +0100)
POLLRDBAND does not seem to be an general error and on Windows the value
for POLLIN is 768 and the value for POLLRDBAND is 512.

Fixes #10501
Reported-by: opensslonzos-github on github
Closes #10592

lib/select.c

index 3b8d468bd847898435b0aada0995b8b0a60eaaf0..61cce619b485f78d16e3ce5312215a4677980e3f 100644 (file)
@@ -230,14 +230,14 @@ int Curl_socket_check(curl_socket_t readfd0, /* two sockets to read from */
   if(readfd0 != CURL_SOCKET_BAD) {
     if(pfd[num].revents & (POLLRDNORM|POLLIN|POLLERR|POLLHUP))
       r |= CURL_CSELECT_IN;
-    if(pfd[num].revents & (POLLRDBAND|POLLPRI|POLLNVAL))
+    if(pfd[num].revents & (POLLPRI|POLLNVAL))
       r |= CURL_CSELECT_ERR;
     num++;
   }
   if(readfd1 != CURL_SOCKET_BAD) {
     if(pfd[num].revents & (POLLRDNORM|POLLIN|POLLERR|POLLHUP))
       r |= CURL_CSELECT_IN2;
-    if(pfd[num].revents & (POLLRDBAND|POLLPRI|POLLNVAL))
+    if(pfd[num].revents & (POLLPRI|POLLNVAL))
       r |= CURL_CSELECT_ERR;
     num++;
   }