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:
parent
1cc86e79e8
commit
1aeb0ca530
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue