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() ); }