From 0672d60f1fce21b35ef42d0cc63dbad293d82d64 Mon Sep 17 00:00:00 2001 From: bjqiwei Date: Tue, 15 Mar 2016 16:09:46 +0800 Subject: [PATCH] Well ,When I create a connection no callback LWS_CALLBACK_WSI_CREATE --- lib/client-handshake.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/client-handshake.c b/lib/client-handshake.c index ba7a44afd..ff976d63c 100644 --- a/lib/client-handshake.c +++ b/lib/client-handshake.c @@ -171,7 +171,8 @@ lws_client_connect_2(struct lws *wsi) * past here, we can't simply free the structs as error * handling as oom4 does. We have to run the whole close flow. */ - + wsi->protocol->callback(wsi, LWS_CALLBACK_WSI_CREATE, + wsi->user_space, NULL, 0); lws_set_timeout(wsi, PENDING_TIMEOUT_AWAITING_CONNECT_RESPONSE, AWAITING_TIMEOUT);