tcp server also parses TCs when client closes connection

This commit is contained in:
Jakob Meier 2021-10-08 13:51:32 +02:00
parent 8e65833d60
commit a578f0390b

View File

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