make sure and remove any UDP message remnants if there

is an exception in a UDP message handler stub
This commit is contained in:
Jeff Hill
2009-06-16 17:45:35 +00:00
parent 957c869c87
commit f2a96aec94

View File

@@ -838,26 +838,19 @@ caStatus casDGClient::processMsg ()
this->in.removeMsg ( msgSize );
}
}
catch ( std::bad_alloc & ) {
status = this->sendErr (
this->ctx.getMsg(), invalidResID, ECA_ALLOCMEM,
"inablility to allocate memory in "
"the server disconnected client" );
status = S_cas_noMemory;
}
catch ( std::exception & except ) {
this->in.removeMsg ( this->in.bytesPresent() );
status = this->sendErr (
this->ctx.getMsg(), invalidResID, ECA_INTERNAL,
"C++ exception \"%s\" in server "
"diconnected client",
"C++ exception \"%s\" in CA circuit server",
except.what () );
status = S_cas_internal;
}
catch (...) {
this->in.removeMsg ( this->in.bytesPresent() );
status = this->sendErr (
this->ctx.getMsg(), invalidResID, ECA_INTERNAL,
"unexpected C++ exception in server "
"diconnected client" );
"unexpected C++ exception in CA datagram server" );
status = S_cas_internal;
}