[libsoup/carlosgc/websockets-close-delay] WebSockets: client should also mark the close frame as SOUP_WEBSOCKET_QUEUE_LAST
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/carlosgc/websockets-close-delay] WebSockets: client should also mark the close frame as SOUP_WEBSOCKET_QUEUE_LAST
- Date: Fri, 12 Jul 2019 12:35:04 +0000 (UTC)
commit 4ab18e3462797b09bcc2d58a82d3a5c9d49b3bec
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Fri Jul 12 14:25:04 2019 +0200
WebSockets: client should also mark the close frame as SOUP_WEBSOCKET_QUEUE_LAST
When close message was already received from the server.
libsoup/soup-websocket-connection.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libsoup/soup-websocket-connection.c b/libsoup/soup-websocket-connection.c
index b45543f5..94ef52a4 100644
--- a/libsoup/soup-websocket-connection.c
+++ b/libsoup/soup-websocket-connection.c
@@ -674,7 +674,7 @@ close_connection (SoupWebsocketConnection *self,
g_debug ("responding to close request");
flags = 0;
- if (pv->connection_type == SOUP_WEBSOCKET_CONNECTION_SERVER && pv->close_received)
+ if (pv->close_received)
flags |= SOUP_WEBSOCKET_QUEUE_LAST;
send_close (self, flags, code, data);
close_io_after_timeout (self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]