if Connection::close() was called before the handshake was completed, the instructions that were sent in the middle were not sent to the server

This commit is contained in:
Toon Schoenmakers 2015-11-06 16:02:01 +01:00
parent 1cc86e79e8
commit 1aeb0ca530
1 changed files with 1 additions and 1 deletions

View File

@ -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