server: deserialization exceptuion guards

This commit is contained in:
Matej Sekoranja
2013-09-23 11:05:52 +02:00
parent 9102e42aed
commit f2a10fd37a
3 changed files with 58 additions and 9 deletions
+14 -1
View File
@@ -934,8 +934,21 @@ namespace pvAccess {
_responseHandler->handleResponse(&_socketAddress,
thisPointer, _version, _command, _payloadSize,
_socketBuffer);
} catch (std::exception& ex) {
LOG(
logLevelDebug,
"Unexpected exception in responseHandler: %s",
ex.what()
);
} catch(...) {
//noop // TODO print?
LOG(
logLevelDebug,
"Unexpected exception in responseHandler!"
);
}
_socketBuffer->setLimit(_storedLimit);