We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb67514 commit dbd74adCopy full SHA for dbd74ad
Sming/Components/Network/src/Network/TcpConnection.cpp
@@ -247,6 +247,9 @@ int TcpConnection::write(IDataSourceStream* stream)
247
char buffer[NETWORK_SEND_BUFFER_SIZE];
248
auto bytesRead = stream->readMemoryBlock(buffer, std::min(sizeof(buffer), available));
249
if(bytesRead == 0) {
250
+ if(pushCount == 0 && stream->available() != 0) {
251
+ pushCount = 1; // the stream has data but it is not ready yet, wait for next poll to try again
252
+ }
253
break;
254
}
255
0 commit comments