[Quickfix-developers] invalid message
Brought to you by:
orenmnero
From: H. S. <st...@st...> - 2004-01-26 13:16:38
|
hello, shouldnt QF silently handle invalid fix messages? I've done some tests with invalid body lengths. when receiving such a message, the log shows: "Expected BodyLength=58, Recieved BodyLength=1" Then, an InvalidMessage exception is thrown which crashes the application. I expected that Session::next already catches it. But the exception is re-thrown in the catch() block. I guess such malformed messages should not bother at application level at all. Is that the correct behaviour of QF? Here goes the trace : thread(16384): at process_sleep(Utility.cpp:373) thread(16386):N3FIX14InvalidMessageE: Expected BodyLength=58, Recieved BodyLength=1 at time_gmtime(Utility.cpp:296) at Session::next(Session.cpp:1039) at SocketConnection::read(SocketConnection.cpp:93) at SocketInitiator::onData(SocketInitiator.cpp:147) at ConnectorWrapper::onEvent(SocketConnector.cpp:78) at SocketMonitor::block(SocketMonitor.cpp:161) at SocketConnector::block(SocketConnector.cpp:150) at SocketInitiator::onStart(SocketInitiator.cpp:99) at Initiator::startThread(Initiator.cpp:211) Aborted Thanks for your help, Heri -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. |