Merge pull request 'meier/tcpFix' (#23) from meier/tcpFix into eive/develop

Reviewed-on: #23
This commit is contained in:
Robin Müller 2021-10-09 13:28:49 +02:00
commit b985bf5167
2 changed files with 7 additions and 1 deletions

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) {

View File

@ -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";
} }