You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix cork() closing a WebSocket that was upgraded asynchronously (#1929)
cork() detected an in-handler upgrade with `this != newCorkedSocket`, but
us_socket_context_adopt_socket() reallocs the poll and returns the same pointer
when the WebSocket extension is not larger than the HttpResponse extension. The
upgrade then went undetected and cork() ran its HTTP connection-close logic on
the now-WebSocket socket, closing it right after open. Also compare the socket
context, which always changes on upgrade.