return "bad protocol" and not "internal" error code when bad protocol arrives
This commit is contained in:
@@ -118,7 +118,7 @@ caStatus casDGClient::uknownMessageAction ()
|
||||
caServerI::dumpMsg ( pHostName, "?", mp, this->ctx.getData(),
|
||||
"bad request code=%u in DG\n", mp->m_cmmd );
|
||||
|
||||
return S_cas_internal;
|
||||
return S_cas_badProtocol;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
@@ -289,10 +289,10 @@ caStatus casStrmClient::uknownMessageAction ( epicsGuard < casClientMutex > & gu
|
||||
}
|
||||
|
||||
/*
|
||||
* returning S_cas_internal here disconnects
|
||||
* returning S_cas_badProtocol here disconnects
|
||||
* the client with the bad message
|
||||
*/
|
||||
return S_cas_internal;
|
||||
return S_cas_badProtocol;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user