From f6962ba874167b038edc4ee00725cb415b358365 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Tue, 3 Nov 2026 14:22:58 +0100 Subject: [PATCH] fix for UDP search port going deaf --- src/pcas/generic/casDGClient.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pcas/generic/casDGClient.cc b/src/pcas/generic/casDGClient.cc index fdee8c2ac..a1bb8a18a 100644 --- a/src/pcas/generic/casDGClient.cc +++ b/src/pcas/generic/casDGClient.cc @@ -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() ); }