20 lines
556 B
Text
20 lines
556 B
Text
--- lib/select.c
|
|
+++ lib/select.c
|
|
@@ -51,6 +51,8 @@
|
|
#include "curl_printf.h"
|
|
#include "curl_memory.h"
|
|
#include "memdebug.h"
|
|
+
|
|
+int websocket_proxy_poll(struct pollfd *fds, nfds_t nfds, int timeout);
|
|
|
|
/*
|
|
* Internal function used for waiting a specific amount of ms
|
|
@@ -318,7 +320,7 @@
|
|
pending_ms = -1;
|
|
else
|
|
pending_ms = 0;
|
|
- r = poll(ufds, nfds, pending_ms);
|
|
+ r = websocket_proxy_poll(ufds, nfds, pending_ms);
|
|
if(r <= 0) {
|
|
if((r == -1) && (SOCKERRNO == EINTR))
|
|
/* make EINTR from select or poll not a "lethal" error */
|