RE: [Quickfix-developers] Cannot reconnect after ungraceful disco nnect
Brought to you by:
orenmnero
|
From: John D. <joh...@ch...> - 2005-10-27 18:22:01
|
Version 1.10.2. -- John > -----Original Message----- > From: Oren Miller [mailto:or...@qu...] > Sent: Thursday, October 27, 2005 1:12 PM > To: John Debay; qui...@li... > Cc: Nicholas Murdock > Subject: Re: [Quickfix-developers] Cannot reconnect after > ungraceful disconnect > > What version? > > --oren > > ----- Original Message ----- > From: "John Debay" <joh...@ch...> > To: <qui...@li...> > Cc: "Nicholas Murdock" <nic...@ch...> > Sent: Thursday, October 27, 2005 10:32 AM > Subject: [Quickfix-developers] Cannot reconnect after > ungraceful disconnect > > > > QuickFIX Documentation: > > http://www.quickfixengine.org/quickfix/doc/html/index.html > > QuickFIX Support: http://www.quickfixengine.org/services.html > > > > Hi, > > > > We are having issues re-establishing QuickFIX sessions > after our initiator > > disconnects ungracefully. We have traced through the code, > and our problem > > seems to be this loop inside ThreadedSocketConnection::setSession(): > > > > // see if the session frees up within 5 seconds > > for ( int i = 1; i <= 5; ++i ) > > { > > m_pSession = Session::registerSession( sessionID ); > > if ( m_pSession ) break; > > process_sleep( 1 ); > > } > > > > Question 1: What is this loop doing? Who is going to free > the session > > within > > 5 seconds? > > > > As I step through Session::resgisterSession(), the problem > seems to be > > here: > > > > if ( isSessionRegistered( sessionID ) ) return 0; > > > > isSessionRegistered() always returns true, so the session is never > > re-established. > > > > Can anyone help me understand what is going on here? When should > > isSessionRegistered() return false? After a session has > been physically > > disconnected? At some other time? > > > > Thanks in advance for any help or advice. > > > > John > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by the JBoss Inc. > > Get Certified Today * Register for a JBoss Training Course > > Free Certification Exam for All Training Attendees Through > End of 2005 > > Visit http://www.jboss.com/services/certification for more > information > > _______________________________________________ > > Quickfix-developers mailing list > > Qui...@li... > > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > > |