{{Quickfixn}} Switching between Primary and Backup sessions

Кононов Роман Олегович rkononov at bcs.ru
Sun Feb 18 23:27:39 PST 2018


Hi,
Switching worked well, At 15:00 we’ve got disconnected and QuickFIX tried to connect Backup and Primary, and eventually successfully connected to Backup:
20180216-15:00:04.839 : Session FIX.4.4:***->*** disconnecting: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host
20180216-15:00:05.089 : Connecting to <Backup>
20180216-15:00:23.729 : Connection failed: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond <Backup>
20180216-15:00:25.401 : Connecting to <Primary>
20180216-15:00:44.011 : Connection failed: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond <Primary>
20180216-15:00:45.714 : Connecting <Backup>
20180216-15:00:45.823 : Connection succeeded
20180216-15:00:45.823 : Initiated logon request
20180216-15:00:45.964 : Received logon

At first it didn’t worked because I’ve set SocketConnectHost<n> at [DEFAULT] section, not in [SESSION], so configuration was:
[DEFAULT]
…
SocketConnectHost=<Primary>
SocketConnectPort=<Primary>
SocketConnectHost1=<Backup>
SocketConnectPort1=<Backup>
…
[SESSION]
BeginString=FIX.4.4
SenderCompID=***
TargetCompID=***

So when I set up this options in [SESSION] section switching worked good.

Regards
Kononov Roman
Developer
BCS Technologies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20180219/a166ab67/attachment.htm>


More information about the Quickfixn mailing list