tcp server also parses TCs when client closes connection

This commit is contained in:
Jakob Meier 2021-10-08 13:51:32 +02:00 committed by Robin Mueller
parent 6ad7f51297
commit 9bcd701a50

View File

@ -168,7 +168,10 @@ void TcpTmTcServer::handleServerOperation(socket_t& connSocket) {
tcpConfig.tcpFlags tcpConfig.tcpFlags
); );
if(retval == 0) { if(retval == 0) {
// Client closed connection size_t availableReadData = ringBuffer.getAvailableReadData();
if(availableReadData > lastRingBufferSize) {
handleTcRingBufferData(availableReadData);
}
return; return;
} }
else if(retval > 0) { else if(retval > 0) {