Thread: [Quickfix-developers] Stop sending heartbeat message
Brought to you by:
orenmnero
|
From: DaveX <dav...@ya...> - 2007-03-07 17:07:43
|
Hi, Experts out there I am using QuickFix 4.2 in one of my testing simulator. How do I stop sending heartbeat responses to client? This is just to test the reaction of the client. I know throwing Exception DoNotSend in toApp() will stop sending app messages, Can I do something similar in toAdmin() to stop sending admin messages. Many thanks to any reply. Dave -- View this message in context: http://www.nabble.com/Stop-sending-heartbeat-message-tf3363469.html#a9357283 Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |
|
From: Oren M. <or...@qu...> - 2007-03-07 17:15:40
|
Hi Dave,
There is no provision to do this out of the box. If you want to do
something like this you'll have to modify the code a bit. If you
look in the Session::next() call, you will see this statement.
else if ( m_state.needHeartbeat() )
{
generateHeartbeat();
}
That is where it decides a heartbeat should go out. You could add a
stopSendingHeartbeats boolean check there to rig the engine to stop
heartbeating. This would only effect unsolicited heartbeats,
heartbeats in response to test requests would still work. To disable
those as will you would have to also modify the
Session::nextTestRequest method.
--oren
On Mar 7, 2007, at 11:07 AM, DaveX wrote:
> QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/
> html/index.html
> QuickFIX Support: http://www.quickfixengine.org/services.html
>
>
> Hi, Experts out there
>
> I am using QuickFix 4.2 in one of my testing simulator. How do I stop
> sending heartbeat responses to client? This is just to test the
> reaction of
> the client. I know throwing Exception DoNotSend in toApp() will
> stop sending
> app messages, Can I do something similar in toAdmin() to stop
> sending admin
> messages. Many thanks to any reply.
>
> Dave
> --
> View this message in context: http://www.nabble.com/Stop-sending-
> heartbeat-message-tf3363469.html#a9357283
> Sent from the QuickFIX - Dev mailing list archive at Nabble.com.
>
>
> ----------------------------------------------------------------------
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Quickfix-developers mailing list
> Qui...@li...
> https://lists.sourceforge.net/lists/listinfo/quickfix-developers
>
|
|
From: Jain, A. <Ani...@rb...> - 2007-03-07 17:21:48
|
> I am using QuickFix 4.2 in one of my testing simulator. How do I stop > sending heartbeat responses to client? This is just to test the =20 > reaction of the client. If the intention is to just test client's reaction to no heartbeat - AND no= other messages as well - then under Unix, you may just stop the job/proces= s=2E Anil Jain ________________________________________ This E-Mail (including any attachments) may contain privileged or confident= ial information. It is intended only for the addressee(s) indicated above. The sender does not waive any of its rights, privileges or other protection= s respecting this information. =20 Any distribution, copying or other use of this E-Mail or the information it= contains, by other than an intended recipient, is not sanctioned and is pr= ohibited. If you received this E-Mail in error, please delete it and advise the sende= r (by return E-Mail or otherwise) immediately.=20 This E-Mail (including any attachments) has been scanned for viruses.=20 It is believed to be free of any virus or other defect that might affect an= y computer system into which it is received and opened.=20 However, it is the responsibility of the recipient to ensure that it is vir= us free.=20 The sender accepts no responsibility for any loss or damage arising in any = way from its use. E-Mail received by or sent from RBC Capital Markets is subject to review by= Supervisory personnel.=20 Such communications are retained and may be produced to regulatory authorit= ies or others with legal rights to the information. IRS CIRCULAR 230 NOTICE: TO COMPLY WITH U.S. TREASURY REGULATIONS, WE ADVI= SE YOU THAT ANY U.S. FEDERAL TAX ADVISE INCLUDED IN THIS COMMUNICATION IS N= OT INTENDED OR WRITTEN TO BE USED, AND CANNOT BE USED, TO AVOID ANY U.S. FE= DERAL TAX PENALTIES OR TO PROMOTE, MARKET, OR RECOMMEND TO ANOTHER PARTY AN= Y TRANSACTION OR MATTER. |
|
From: DaveX <dav...@ya...> - 2007-03-07 17:25:33
|
Great idea, thanks. Dave Oren Miller wrote: > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hi Dave, > > There is no provision to do this out of the box. If you want to do > something like this you'll have to modify the code a bit. If you > look in the Session::next() call, you will see this statement. > > else if ( m_state.needHeartbeat() ) > { > generateHeartbeat(); > } > > That is where it decides a heartbeat should go out. You could add a > stopSendingHeartbeats boolean check there to rig the engine to stop > heartbeating. This would only effect unsolicited heartbeats, > heartbeats in response to test requests would still work. To disable > those as will you would have to also modify the > Session::nextTestRequest method. > > --oren > > On Mar 7, 2007, at 11:07 AM, DaveX wrote: > >> QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/ >> html/index.html >> QuickFIX Support: http://www.quickfixengine.org/services.html >> >> >> Hi, Experts out there >> >> I am using QuickFix 4.2 in one of my testing simulator. How do I stop >> sending heartbeat responses to client? This is just to test the >> reaction of >> the client. I know throwing Exception DoNotSend in toApp() will >> stop sending >> app messages, Can I do something similar in toAdmin() to stop >> sending admin >> messages. Many thanks to any reply. >> >> Dave >> -- >> View this message in context: http://www.nabble.com/Stop-sending- >> heartbeat-message-tf3363469.html#a9357283 >> Sent from the QuickFIX - Dev mailing list archive at Nabble.com. >> >> >> ---------------------------------------------------------------------- >> --- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to >> share your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php? >> page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Quickfix-developers mailing list >> Qui...@li... >> https://lists.sourceforge.net/lists/listinfo/quickfix-developers >> > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > -- View this message in context: http://www.nabble.com/Stop-sending-heartbeat-message-tf3363469.html#a9357664 Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |