• Deomid Ryabkov's avatar
    Fix handling of WS handshake error response · 1e9fabe1
    Deomid Ryabkov authored
    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
    1e9fabe1
Name
Last commit
Last update
..
mbuf.h Loading commit data...
mg_coap.h Loading commit data...
mg_dns.h Loading commit data...
mg_dns_server.h Loading commit data...
mg_http.h Loading commit data...
mg_http_client.h Loading commit data...
mg_http_server.h Loading commit data...
mg_mqtt.h Loading commit data...
mg_mqtt_server.h Loading commit data...
mg_net.h Loading commit data...
mg_resolv.h Loading commit data...
mg_uri.h Loading commit data...
mg_util.h Loading commit data...
intro.md Loading commit data...