Re: [Quickfix-developers] Proper way to disconnect session
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2004-07-07 23:13:02
|
Why is the initiator thread being terminated? All you need to do is=20 call logout when you want to disconnect, and call logon when you want=20 to reconnect. Nothing here should affect your Initiator thread. Is=20 something else going on? Did you call stop on the Initiator? --oren On Jul 7, 2004, at 4:44 PM, Eric Ginder wrote: > I'm having trouble with reconnecting after I disconnect a session.=A0=20= > I'm using Session::logout() to kill the session and I see the logout=20= > message coming back from the targetcomp. The initiator thread that is=20= > supposed to terminate at this point is hanging somewhere and when I=20 > try to reconnect, it fails because the socket initiator is still=20 > waiting for the variable m_stop to turn to true. > =A0 > Does anyone else have this problem or is there a better way to=20 > disconnect? > =A0 > Thanks, > =A0 > Eric Ginder > Last Atlantis Capital > =A0 |