Commit 4ab18e34 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos Committed by Carlos Garcia Campos
Browse files

WebSockets: client should also mark the close frame as SOUP_WEBSOCKET_QUEUE_LAST

When close message was already received from the server.
parent 74866bba
Pipeline #94772 passed with stage
in 47 seconds
...@@ -674,7 +674,7 @@ close_connection (SoupWebsocketConnection *self, ...@@ -674,7 +674,7 @@ close_connection (SoupWebsocketConnection *self,
g_debug ("responding to close request"); g_debug ("responding to close request");
flags = 0; flags = 0;
if (pv->connection_type == SOUP_WEBSOCKET_CONNECTION_SERVER && pv->close_received) if (pv->close_received)
send_close (self, flags, code, data); send_close (self, flags, code, data);
close_io_after_timeout (self); close_io_after_timeout (self);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment