websocket send: make sure all data in the kernel buffer is sent
This commit is contained in:
1 parent
892ea375e3
commit
d6597d9f52
4 files changed
+25
-2
No files matched your search
@@ -586,6 +586,12 @@ namespace ix
|
||||
}
|
||||
}
|
||||
|
||||
// Make sure we send all the buffered data ; there can be a lot of it
|
||||
// for large messages.
|
||||
// TODO / this will block the sending thread ; we need to eval whether
|
||||
// this is the right fix
|
||||
while (!isSendBufferEmpty()) sendOnSocket();
|
||||
|
||||
return WebSocketSendInfo(true, compressionError, payloadSize, wireSize);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user