Re: [Quickfix-developers] Proper way to disconnect session
Brought to you by:
orenmnero
|
From: Eric G. <er...@la...> - 2004-07-08 17:55:31
|
Oren,
Thanks for the hint.=20
I was calling pInitiator->start(); but not using logon(). Somehow the =
session logs on automatically when you do this, and it never occurred to =
me that logon() was missing.=20
When I added the logon() statement, the session reconnects just fine.=20
What this means however, is that the threads on the initiator or =
acceptor never actually get terminated as long as your application is =
running. Is that correct?
Eric
----- Original Message -----=20
From: Oren Miller=20
To: Eric Ginder=20
Cc: qui...@li...=20
Sent: Wednesday, July 07, 2004 6:09 PM
Subject: Re: [Quickfix-developers] Proper way to disconnect session
Why is the initiator thread being terminated? All you need to do is =
call logout when you want to disconnect, and call logon when you want to =
reconnect. Nothing here should affect your Initiator thread. Is =
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. =
I'm using Session::logout() to kill the session and I see the logout =
message coming back from the targetcomp. The initiator thread that is =
supposed to terminate at this point is hanging somewhere and when I try =
to reconnect, it fails because the socket initiator is still waiting for =
the variable m_stop to turn to true.
=20
Does anyone else have this problem or is there a better way to =
disconnect?
=20
Thanks,
=20
Eric Ginder
Last Atlantis Capital
=20
|