]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_verto] Fix use of libks websockets on Windows. POLLHUP is ignored in poll events...
authorAndrey Volk <andywolk@gmail.com>
Thu, 9 Jul 2020 19:06:47 +0000 (23:06 +0400)
committerAndrey Volk <andywolk@gmail.com>
Sat, 23 Oct 2021 19:00:33 +0000 (22:00 +0300)
src/mod/endpoints/mod_verto/mod_verto.c

index b5dcce22691ad32d93efaf60c4121c0db6e22fd5..804f612ff0f498cafa412dbcf40c39d8c91d1890 100644 (file)
@@ -1865,7 +1865,7 @@ done:
                kws_t *wsh = jsock->ws;
 
                while(jsock->profile->running) {
-                       int pflags = kws_wait_sock(wsh, 3000, KS_POLL_READ | KS_POLL_ERROR | KS_POLL_HUP);
+                       int pflags = kws_wait_sock(wsh, 3000, KS_POLL_READ);
 
                        if (jsock->drop) { die("%s Dropping Connection\n", jsock->name); }
                        if (pflags < 0 && (errno != EINTR)) { die_errnof("%s POLL FAILED with %d", jsock->name, pflags); }
@@ -1927,7 +1927,7 @@ static void client_run(jsock_t *jsock)
 
                if (!jsock->ws) { die("%s Setup Error\n", jsock->name); }
                
-               pflags = kws_wait_sock(jsock->ws, poll_time, KS_POLL_READ | KS_POLL_ERROR | KS_POLL_HUP);
+               pflags = kws_wait_sock(jsock->ws, poll_time, KS_POLL_READ);
 
                if (jsock->drop) { die("%s Dropping Connection\n", jsock->name); }
                if (pflags < 0 && (errno != EINTR)) { die_errnof("%s POLL FAILED with %d", jsock->name, pflags); }