[libsoup] Fix payload close



commit 910d67c7b61837d70a553816111664014799fab9
Author: Italo Guerrieri <guerital amazon it>
Date:   Thu Dec 28 12:12:20 2017 +0100

    Fix payload close
    
    Pass the close payload to the function send_message in order to
    check if the payload if bigger than 125 octect
    Fix Autobahn test case 7.3.6.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=792113

 libsoup/soup-websocket-connection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-websocket-connection.c b/libsoup/soup-websocket-connection.c
index 25a87b5..6408903 100644
--- a/libsoup/soup-websocket-connection.c
+++ b/libsoup/soup-websocket-connection.c
@@ -627,7 +627,7 @@ receive_close (SoupWebsocketConnection *self,
                if (pv->connection_type == SOUP_WEBSOCKET_CONNECTION_SERVER)
                        close_io_stream (self);
        } else {
-               close_connection (self, pv->peer_close_code, NULL);
+               close_connection (self, pv->peer_close_code, pv->peer_close_data);
        }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]