diff --git a/lib/roles/http/client/client-handshake.c b/lib/roles/http/client/client-handshake.c index ee7bfd0e7f..295c6e8664 100644 --- a/lib/roles/http/client/client-handshake.c +++ b/lib/roles/http/client/client-handshake.c @@ -587,7 +587,7 @@ lws_client_connect_2(struct lws *wsi) goto failed; } - lws_out(wsi, + lws_set_timeout(wsi, PENDING_TIMEOUT_AWAITING_SOCKS_GREETING_REPLY, AWAITING_TIMEOUT);