Fix websockets 3.2 causing slow connection on non-websockets listeners

Closes #1406. Thanks to pbrenna.
This commit is contained in:
Roger A. Light 2019-09-07 21:45:56 +01:00
parent b9638ddb1a
commit 034324c46d

View File

@ -590,7 +590,7 @@ int mosquitto_main_loop(struct mosquitto_db *db, mosq_sock_t *listensock, int li
* will soon, so for now websockets clients are second class * will soon, so for now websockets clients are second class
* citizens. */ * citizens. */
if(db->config->listeners[i].ws_context){ if(db->config->listeners[i].ws_context){
libwebsocket_service(db->config->listeners[i].ws_context, 0); libwebsocket_service(db->config->listeners[i].ws_context, -1);
} }
} }
if(db->config->have_websockets_listener){ if(db->config->have_websockets_listener){