mongoose/docs/c-api/mg_http.h
Deomid Ryabkov 1e9fabe1ca Fix handling of WS handshake error response
Check response code, make sure it's 101.
Pass http_message to the client to keep it appraised.
This represents a slight change in the API -
in case of an error MG_EV_WEBSOCKET_HANDSHAKE_DONE will now be delivered where previosuly connection would just hang.
Clients that do not examine the argument may for a moment think handshake has succeeded but in fact connection will be closed immediately.

CL: mg: Fix handling of WS handshake error response

PUBLISHED_FROM=645a43d9e5bee216e54411f85827c9b974e9a7d1
2019-02-14 21:19:34 +00:00
..
intro.md Fix mongoose docs generation 2018-02-03 01:20:48 +02:00
mg_connect_ws_opt.md Fix mongoose docs generation 2018-02-03 01:20:48 +02:00
mg_connect_ws.md Fix mongoose docs generation 2018-02-03 01:20:48 +02:00
mg_http_is_authorized.md Fix mongoose docs generation 2018-02-03 01:20:48 +02:00
mg_http_send_digest_auth_request.md Fix mongoose docs generation 2018-02-03 01:20:48 +02:00
mg_printf_websocket_frame.md Fix mongoose docs generation 2018-02-03 01:20:48 +02:00
mg_send_websocket_frame.md Fix mongoose docs generation 2018-02-03 01:20:48 +02:00
mg_send_websocket_framev.md Fix mongoose docs generation 2018-02-03 01:20:48 +02:00
mg_send_websocket_handshake2.md Fix mongoose docs generation 2018-02-03 01:20:48 +02:00
mg_send_websocket_handshake3.md Fix mongoose docs generation 2018-02-03 01:20:48 +02:00
mg_send_websocket_handshake3v.md Fix mongoose docs generation 2018-02-03 01:20:48 +02:00
mg_send_websocket_handshake.md Fix mongoose docs generation 2018-02-03 01:20:48 +02:00
mg_set_protocol_http_websocket.md Fix handling of WS handshake error response 2019-02-14 21:19:34 +00:00
mg_url_decode.md Fix mongoose docs generation 2018-02-03 01:20:48 +02:00
struct_http_message.md Fix mongoose docs generation 2018-02-03 01:20:48 +02:00
struct_mg_http_multipart_part.md Add ability for multipart data handler to provide pushback 2018-12-05 16:02:56 +00:00
struct_mg_ssi_call_ctx.md Fix mongoose docs generation 2018-02-03 01:20:48 +02:00
struct_websocket_message.md Fix mongoose docs generation 2018-02-03 01:20:48 +02:00