return "bad protocol" and not "internal" error code when bad protocol arrives

This commit is contained in:
Jeff Hill
2004-09-29 17:45:35 +00:00
parent 9f8e75b945
commit ecc0d9976d
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -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;
}
/*