Thanks Gordon. Just to clarify default behaviour - for Java clients the default is 120s but for C++/Python clients the heartbeating is off and must be explicitly set? In other words, C++/Python clients that are dead (OS crash, network problems, client is hung) will be never removed from broker list of connected clients and will be included in max-connections (default 500) count?
Thank you, Jan > -----Original Message----- > From: Gordon Sim [mailto:[email protected]] > Sent: Tuesday, April 09, 2013 7:37 PM > To: [email protected] > Subject: Re: Documentaiton/clarification of heartbeat for broker > > On 9 April 2013 15:28, Jan Bares <[email protected]> wrote: > > > I cannot find any documentation about how C++ broker detects dead > clients. > > In client I can set heartbeat/idle_timeout - this will allow client to > > detect dead broker but I have not found any documentation how broker > can > > detect dead clients. It even seems like broker doesn't use TCP_KEEPALIVE. > > > > Can anyone help me? > > > > The broker will use heartbeats for those connections where the client > negotiates a non-zero interval for them. It doesn't use TCP_KEEPALIVE. DISCLAIMER ________________________________ WOOD & Company Financial Services, a.s. and its branches are authorized and regulated by the CNB as Home State regulator and in Poland by the KNF, in Slovakia by the NBS and in the UK by the FSA as Host State regulators. For further information about WOOD & Co., its investment services, financial instruments and associated risks, safeguard client assets (incl. compensation schemes) and contractual relationship please see our website at www.wood.com<http://www.wood.com/> under section Corporate Governance. Unless otherwise stated, this transmission is neither an offer nor the solicitation of an offer to sell or purchase any investment. All estimates, opinions and other information contained herein are subject to change without notice and are provided in good faith but without legal responsibility or liability. Opinion may be personal to the author and may not reflect the opinions of WOOD & Co. Communications from sales persons, sales traders or traders should not be regarded as investment research and may contain opinions or trading ideas which are different from WOOD & Co. investment research opinions. This e-mail and any attachments are confidential and may be privileged or otherwise protected from disclosure. If you are not a named addressee you must not use, disclose, distribute, copy, print or rely on this e-mail and any of its attachments. Please notify the sender that you have received this email by mistake by replying to the email, and then delete the email and any copies of it. Although WOOD & Co. routinely screens e-mails for viruses, addressees should scan this e-mail and any attachments for viruses. WOOD & Co. makes no representation or warranty as to the absence of viruses in this e-mail or any attachments. Please note that to ensure regulatory compliance and for the protection of our clients and business, we may monitor and read e-mails sent to and from our server(s). ________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
