GNOME Bugzilla – Bug 774957
websocket-connection: avoid sending data if we are closing the connection
Last modified: 2016-12-03 14:58:32 UTC
We cannot trust the client to be nice and stop sending data when we are closing. If we receive a ping when closing the connection we need to avoid trying to send data after that. Change the code to be more robust and to not try to write in the socket if we are in the closed state. This fixes an assertion on the test 3.2 of autobahn: See https://github.com/crossbario/autobahn-testsuite
Created attachment 340635 [details] [review] websocket-connection: avoid sending data if we are closing the connection
meh, no idea why it got duplicated. *** This bug has been marked as a duplicate of bug 774956 ***
*** Bug 774956 has been marked as a duplicate of this bug. ***
Attachment 340635 [details] pushed as 3212d89 - websocket-connection: avoid sending data if we are closing the connection