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