fix for UDP search port going deaf

This commit is contained in:
zimoch committed 2026-11-09 09:21:25 +01:00
1 parent 67a8bb8bed
commit f6962ba874
1 file changed
+9 -1
+9 -1
View File
@@ -662,10 +662,18 @@ caStatus casDGClient::processDG ()
}
}
if ( status != S_cas_success ) {
if ( status == S_cas_sendBlocked ) {
break;
}
if ( status != S_cas_success ) {
char pHostName[64u];
this->hostName ( pHostName, sizeof ( pHostName ) );
errPrintf ( status, __FILE__, __LINE__,
"Bad UDP message from client \"%s\"", pHostName );
status = S_cas_success;
}
if ( this->in.bytesPresent () > 0 && dgInBytesConsumed == 0 ) {
this->in.removeMsg ( this->in.bytesPresent() );
}