From 1aeb0ca5306d5dfd21629a617e884baa771a6876 Mon Sep 17 00:00:00 2001 From: Toon Schoenmakers Date: Fri, 6 Nov 2015 16:02:01 +0100 Subject: [PATCH] if Connection::close() was called before the handshake was completed, the instructions that were sent in the middle were not sent to the server --- src/connectionimpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connectionimpl.cpp b/src/connectionimpl.cpp index bd78082..f3f78a5 100644 --- a/src/connectionimpl.cpp +++ b/src/connectionimpl.cpp @@ -300,7 +300,7 @@ bool ConnectionImpl::send(const Frame &frame) if (_state == state_closing || _state == state_closed) return false; // some frames can be sent _after_ the close() function was called - if (_closed && !frame.partOfShutdown()) return false; + if (_closed && !frame.partOfShutdown() && !frame.partOfHandshake()) return false; // if the frame is bigger than we allow on the connection // it is impossible to send out this frame successfully