force failed header parse to act
''...Websocket servers return failure responses other than HTTP Status 101 in the case of mismatches of WebSocket version or additional header data etc... It seems that libwebsockets shows "WARN: problems parsing header" error in such cases without calling any callbacks or returning error code. Is this right? I modified lib/client.c to handle this.'' Signed-off-by: Fujii Bunichiroh <Bunichiroh.Fujii@jp.sony.com>
This commit is contained in:
parent
8eda4117dd
commit
e92947680a
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ bail3:
|
|||
"closing connection at LWS_CONNMODE...SERVER_REPLY\n");
|
||||
libwebsocket_close_and_free_session(context, wsi,
|
||||
LWS_CLOSE_STATUS_NOSTATUS);
|
||||
return 0;
|
||||
return -1;
|
||||
|
||||
case LWS_CONNMODE_WS_CLIENT_WAITING_EXTENSION_CONNECT:
|
||||
lwsl_ext("LWS_CONNMODE_WS_CLIENT_WAITING_EXTENSION_CONNECT\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue