[Quickfix-developers] ThreadedSocketAcceptor Query
Brought to you by:
orenmnero
From: Naveed A. <na...@nc...> - 2010-05-15 13:37:19
|
I have two questions. 1 == I have implemented a FIX server using ThreadedSocketAcceptor. Can anyone tell me what is the behaviour of Session.SendToTarget method in in this case? The sessions are connected on separate threads and admin messages are sent (automatically like heartbeat, resend req etc) on the same thread i.e the thread on which a particular session is connected. But when I send an execution report to a session, using Session.SendToTarget method, from Application thread. It is not been sent to the client using its own connecting thread rather it is sent from Application thread. How can I send the ER to client on its own connecting thread? 2 == What if one client does not respond (i.e. disconnected) does this stalls/hangs the server. Please respond for both cases, SocketAcceptor as well as ThreadedSocketAcceptor? Thanks in advance |