Subject: [PATCH] Fix broken libev support in client mode
authorwonder-mice <wonder.mice@gmail.com>
Wed, 22 Apr 2015 18:27:45 +0000 (11:27 -0700)
committerAndy Green <andy.green@linaro.org>
Wed, 22 Apr 2015 22:06:10 +0000 (06:06 +0800)
lib/client.c

index c9cd156..fd65ae8 100644 (file)
@@ -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 */