1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

Well ,When I create a connection no callback LWS_CALLBACK_WSI_CREATE

This commit is contained in:
bjqiwei 2016-03-15 16:09:46 +08:00
parent 9a720bbb50
commit 0672d60f1f

View file

@ -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);