Repository navigation
After scheduled logout/disconnection FIX session starts connection attempts from the 1st host on the list - #152
Conversation
connection attempts from the 1st host on the list.
|
Thanks for the PR, seems sensible. |
|
One further thought: wouldn't this also reset the address back to the first address in the following case:
I didn't look this up in the code, just was thinking about it. |
|
@chrjohn , yes, you are right - it will try FIX connection to 1 first. In my case host 1 is primary, host 2 is backup. QFJ connects to primary (host 1) on Mon, but on Tue it connects to backup (host 2). If primary host 1 is not available - it doesn't mean we shouldn't try it again next day. |
|
Hi @mmitya |
|
Good afternoon @chrjohn , |
|
You are probably right ;) I'll give it a thought or two. |
|
Great, thanks @chrjohn . |
|
Good afternoon, @chrjohn. Connection algorithm:
Real case example:
If host_1 is not available at some point we should try to connect it again next time. After every successful FIX connection and subsequent disconnection FIX engine starts from the beginning of the host list. Hope it was helpful. P.S. I don't think this connection establishment logic can satisfy everyone. It would be better to extract interface and have different implementations - round-robin for LB, etc. But it is a separate feature, not a quick change. |
|
Hi @mmitya , thanks for the summary. Would it be possible to add a short description of the algorithm to https://github.com/quickfix-j/quickfixj/blob/master/quickfixj-core/src/main/doc/usermanual/usage/configuration.html ??
|
|
Hello @chrjohn , |
|
Hi @mmitya , Thanks, |
|
Hello @chrjohn ! |
|
Hi @mmitya , there is currently no plan. Luckily I got 2.0.0 out of the door before Christmas. ;) |
connection when behind a proxy See: quickfix-j#152 for reference
Example
Session configuration snippet:
Issue
FIX session establishes connection to host_0 at 07:30:00
FIX session disconnects at 17:30:00
Next day FIX session established connection to host_1 at 07:30:00, but it is expected to be host_0
For my own reference: PROM-4719