From bd2a6c64771c8af5af0b505aa75c04d2b39c814a Mon Sep 17 00:00:00 2001 From: wonder-mice Date: Wed, 22 Apr 2015 11:27:45 -0700 Subject: [PATCH] Subject: [PATCH] Fix broken libev support in client mode --- lib/client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/client.c b/lib/client.c index c9cd156a..fd65ae8e 100644 --- a/lib/client.c +++ b/lib/client.c @@ -126,6 +126,7 @@ int lws_client_socket_service(struct libwebsocket_context *context, */ if (lws_change_pollfd(wsi, LWS_POLLOUT, 0)) return -1; + lws_libev_io(context, wsi, LWS_EV_STOP | LWS_EV_WRITE); #ifdef LWS_OPENSSL_SUPPORT /* we can retry this... just cook the SSL BIO the first time */