tcp server also parses TCs when client closes connection
This commit is contained in:
parent
8e65833d60
commit
a578f0390b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user