[Quickfix-developers] Strange logic in ThreadedSocketAcceptor::onInitialize()
Brought to you by:
orenmnero
From: Peter P. <pet...@ho...> - 2008-12-05 16:28:17
|
ThreadedSocketAcceptor::onInitialize() contains the following code: if( settings.has( SOCKET_REUSE_ADDRESS ) ) reuseAddress = s.get().getBool( SOCKET_REUSE_ADDRESS ); which is throwing an exception on my system because the SOCKET_REUSE_ADDRESS entry is present in the session configuration (and therefore the if() clause is true) but is not present in the DEFAULTS configuration (and therefore the assignment fails and throws a FIX::ConfigError exception). I'm not familiar with the internals of Quickfix but this looks like a strange piece of logic to me. Why is the function testing the dictionary for the session settings but getting the value from the defaults? Dan _________________________________________________________________ Live Search presents Big Snap II - win John Lewis vouchers http://clk.atdmt.com/UKM/go/117442309/direct/01/ |