meier/tcpFix #23
@ -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) {
|
||||||
|
@ -21,6 +21,9 @@ void tcpip::determineErrorStrings(Protocol protocol, ErrorSources errorSrc, std:
|
|||||||
if(errorSrc == ErrorSources::SETSOCKOPT_CALL) {
|
if(errorSrc == ErrorSources::SETSOCKOPT_CALL) {
|
||||||
srcString = "setsockopt call";
|
srcString = "setsockopt call";
|
||||||
}
|
}
|
||||||
|
if(errorSrc == ErrorSources::BIND_CALL) {
|
||||||
|
srcString = "bind call";
|
||||||
|
}
|
||||||
else if(errorSrc == ErrorSources::SOCKET_CALL) {
|
else if(errorSrc == ErrorSources::SOCKET_CALL) {
|
||||||
srcString = "socket call";
|
srcString = "socket call";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user