send optimization + ws file transfer test

This commit is contained in:
Benjamin Sergeant
2019-03-14 13:47:03 -07:00
parent ead9616d04
commit ec2f229489
6 changed files with 62 additions and 34 deletions

View File

@ -605,7 +605,11 @@ namespace ix
}
}
_socket->wakeUpFromPoll(Socket::kSendRequest);
// Request to flush the send buffer on the background thread if it isn't empty
if (!isSendBufferEmpty())
{
_socket->wakeUpFromPoll(Socket::kSendRequest);
}
return WebSocketSendInfo(true, compressionError, payloadSize, wireSize);
}