mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
ws: tell caller we closed wsi on handshake failure
https://github.com/warmcat/libwebsockets/issues/2681
This commit is contained in:
parent
608688b308
commit
173c84a595
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ hs2:
|
||||||
lwsl_err("Failed to generate handshake for client\n");
|
lwsl_err("Failed to generate handshake for client\n");
|
||||||
lws_close_free_wsi(wsi, LWS_CLOSE_STATUS_NOSTATUS,
|
lws_close_free_wsi(wsi, LWS_CLOSE_STATUS_NOSTATUS,
|
||||||
"chs");
|
"chs");
|
||||||
return 0;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* send our request to the server */
|
/* send our request to the server */
|
||||||
|
|
Loading…
Add table
Reference in a new issue