blob: ac1f4a84d25c4c5f838da4ea64edf69ef6fa6e10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- 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 */
|