mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-09 07:22:21 +08:00
Fixed bug in stream buffer that could cause data to be
inserted out of order. Also removed unnecessary limit on writes to the TCP socket.
This commit is contained in:
@@ -211,10 +211,6 @@ void CTCPSocket::ioService()
|
||||
|
||||
// get amount of data to write
|
||||
UInt32 n = m_output->getSize();
|
||||
if (n > 4096) {
|
||||
// limit write size
|
||||
n = 4096;
|
||||
}
|
||||
|
||||
// write data
|
||||
const void* buffer = m_output->peek(n);
|
||||
|
||||
Reference in New Issue
Block a user