Re: [Quickfix-developers] Disconnecting from servers
Brought to you by:
orenmnero
From: Oren M. <ore...@ya...> - 2003-07-11 16:56:51
|
In SessionState.h you will find the following code: bool loggedOutTimeout() const { UtcTimeStamp now; return sentLogout() && ( ( now - lastReceivedTime() ) >= 2 ); } As per the spec, 2 seconds is the amount of time you are supposed to wait for a logout (or somethind) before hanging up. As you can tell, this value isn't configurable right now, but you can certainly increase it here if your counterparty needs more time to respond. --- Paul Beechey <pau...@ai...> wrote: > Hi again all, > > I have now got my client to logoff from a server > correctly, i.e. send a > logout message! > > In my code I then wait until I receive a logout back > from the server. It > appears though that quickfix, as soon as it send a > logout message to the > server closes its socket connection, thereby not > allowing the server to > response. This in effect keeps the session alive on > the server, not > allowing us to connect again. > > Is there a simple way that I can stop quickfix from > doing this? > > Many thanks in advance again, > > Paul. > > Paul Beechey > Technical Architect > Aitken Campbell & Company Ltd. > Telephone: 0121 697 7011 > Fax: 0121 698 8624 > Mobile: 07764 445867 > Email: pau...@ai... > IMPORTANT > Internet communications are not necessarily secure > and may be > intercepted or changed after they are sent. Aitken > Campbell & Company > Limited does not accept liability for any such > changes. If you wish to > confirm the origin or the content of this > communication, please contact > the sender using an alternative means of > communication. > This communication does not create or modify any > contract. > If you are not the intended recipient of this > communication you should > destroy it without copying, disclosing or otherwise > using its content. > Please notify the sender immediately of the error. > Aitken Campbell & Company Limited is a subsidiary of > TD Waterhouse > Investor Services (UK) Ltd. > Aitken Campbell & Company Limited is a member of the > London Stock > Exchange Regulated by FSA > Registered Office: Abbey House, 2nd Floor, 10 > Bothwell Street, Glasgow, > G2 6NT Reg. No. SC97757 Registered in Scotland. > > __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |