Skip to content
Commit 3212d890 authored by Ignacio Casal Quinteiro's avatar Ignacio Casal Quinteiro Committed by Dan Winship
Browse files

websocket-connection: avoid sending data if we are closing the connection

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

https://bugzilla.gnome.org/show_bug.cgi?id=774957
parent c3cb35c4
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