reconnect behaviour not consistent

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

reconnect behaviour not consistent

ali.n.naqvi
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Hi All,

 

I am basically testing the Quickfix reconnectivity feature where I have ReconnectInterval set to 10 sec.

 

We have 2 different environments where the dev one is running from within eclipse and the test one is running independently by referencing jars in the classpath etc.

 

In the dev environment if I unplug my network cable I do not see any reconnect attempts. Its almost like Quickfix/mina just gives up and If and when I reconnect the network cable quickfix doesn’t re initiate the connection. Message that I see in my logs is pasted below:

 

ERROR EVENT: Disconnecting: Socket exception (/75.98.57.122:14500): java.io.IOException: An established connection was aborted by the software in your host machine

Session Client[1]: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=37 cap=66: 15 03 03 00 20 BD 57 01 34 23 0E 70 8E 3A BC B7...]

FIX onLogout FIXConnection: MyConn sessionID: FIXT.1.1:AGGRET12->MD

 

 

 

In the test environment if I unplug my network cable I see that quickfix is trying to find a network route to the destination machine and it manages to successfully reconnecti once I reconnect the network cable. Message that I see in my logs is pasted below:

 

INFO  ~ QFJ Timer [FIXLogger] EVENT: Sent test request TEST

INFO  ~ QFJ Timer [FIXLogger] ERR: Disconnecting: Timed out waiting for heartbeat

INFO  ~ QFJ Timer [DefaultFIXConnection] FIX onLogout sessionID: FIXT.1.1:AGGRET12->MD

 

  INFO  ~ QFJ Timer [FIXLogger] ERR: java.net.NoRouteToHostException during connection to 75.98.57.122/75.98.57.122:14500: java.net.NoRouteToHostException: No route to host: no further information (Next retry in 10000 milliseconds)

INFO  ~ QFJ Timer [FIXLogger] ERR: java.net.NoRouteToHostException during connection to 75.98.57.122/75.98.57.122:14500: java.net.NoRouteToHostException: No route to host: no further information (Next retry in 10000 milliseconds)

INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not established after 4000 ms.

INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not established after 9001 ms.

INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not established after 14002 ms.

INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not established after 19003 ms.

INFO  ~ QFJ Timer [FIXLogger] ERR: java.net.ConnectException during connection to 75.98.57.122/75.98.57.122:14500: java.net.ConnectException: Connection timed out: no further information (Next retry in 10000 milliseconds)

INFO  ~ QFJ Timer [DefaultFIXConnection] FIX toAdmin Message Being sent to counterparty: 8=FIXT.1.1_9=86_35=A_34=1_49=AGGRET12_52=20161103-09:44:30.179_56=MD_98=0_108=10_141=Y_1137=9_10=121_

.....

INFO  ~ QF/J Session dispatcher: FIXT.1.1:AGGRET12->MD [FIXLogger] EVENT: Received logon

INFO  ~ QF/J Session dispatcher: FIXT.1.1:AGGRET12->MD [DefaultFIXConnection] FIX onLogon sessionID: FIXT.1.1:AGGRET12->MD

 

 

 

 

Does anybody know whats the issue here? Possibly a quickfix or mina library version issue?

 

Many Thanks,




This e-mail is for the sole use of the intended recipient and contains information that may be privileged and/or confidential. If you are not an intended recipient, please notify the sender by return e-mail and delete this e-mail and any attachments. Certain required legal entity disclosures can be accessed on our website.

------------------------------------------------------------------------------

_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: reconnect behaviour not consistent

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi,

both processes (dev/test) are configured as initiator? Which QFJ version are you using?
Configurations for both systems (dev/test) are the same?

To me it looks like the process in the dev environment is maybe using an older version of QFJ? There
was a bug in versions up to and including 1.6.2 that could lead to not reconnecting the session in
initiators.

Regards,
Chris.


On 01/12/16 15:10, [hidden email] wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
>
>
> Hi All,
>
> I am basically testing the Quickfix reconnectivity feature where I have ReconnectInterval set to
> 10 sec.
>
> We have 2 different environments where the dev one is running from within eclipse and the test one
> is running independently by referencing jars in the classpath etc.
>
> *In the dev environment if I unplug my network cable I do not see any reconnect attempts. Its
> almost like Quickfix/mina just gives up and If and when I reconnect the network cable quickfix
> doesn’t re initiate the connection. Message that I see in my logs is pasted below:*
>
> /ERROR EVENT: Disconnecting: Socket exception (/75.98.57.122:14500): java.io.IOException: An
> established connection was aborted by the software in your host machine/
>
> /Session Client[1]: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=37 cap=66: 15 03 03 00 20
> BD 57 01 34 23 0E 70 8E 3A BC B7...]/
>
> /FIX onLogout FIXConnection: MyConn sessionID: FIXT.1.1:AGGRET12->MD/
>
> *In the test environment if I unplug my network cable I see that quickfix is trying to find a
> network route to the destination machine and it manages to successfully reconnecti once I
> reconnect the network cable. Message that I see in my logs is pasted below:*
>
> /INFO  ~ QFJ Timer [FIXLogger] EVENT: Sent test request TEST/
>
> /INFO  ~ QFJ Timer [FIXLogger] ERR: Disconnecting: Timed out waiting for heartbeat/
>
> /INFO  ~ QFJ Timer [DefaultFIXConnection] FIX onLogout sessionID: FIXT.1.1:AGGRET12->MD/
>
> //
>
> /  INFO  ~ QFJ Timer [FIXLogger] ERR: java.net.NoRouteToHostException during connection to
> 75.98.57.122/75.98.57.122:14500: java.net.NoRouteToHostException: No route to host: no further
> information (Next retry in 10000 milliseconds)/
>
> /INFO  ~ QFJ Timer [FIXLogger] ERR: java.net.NoRouteToHostException during connection to
> 75.98.57.122/75.98.57.122:14500: java.net.NoRouteToHostException: No route to host: no further
> information (Next retry in 10000 milliseconds)/
>
> /INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not established after 4000 ms./
>
> /INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not established after 9001 ms./
>
> /INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not established after 14002 ms./
>
> /INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not established after 19003 ms./
>
> /INFO  ~ QFJ Timer [FIXLogger] ERR: java.net.ConnectException during connection to
> 75.98.57.122/75.98.57.122:14500: java.net.ConnectException: Connection timed out: no further
> information (Next retry in 10000 milliseconds)/
>
> /INFO  ~ QFJ Timer [DefaultFIXConnection] FIX toAdmin Message Being sent to counterparty:
> 8=FIXT.1.1_9=86_35=A_34=1_49=AGGRET12_52=20161103-09:44:30.179_56=MD_98=0_108=10_141=Y_1137=9_10=121_/
>
> /...../
>
> /INFO  ~ QF/J Session dispatcher: FIXT.1.1:AGGRET12->MD [FIXLogger] EVENT: Received logon/
>
> /INFO  ~ QF/J Session dispatcher: FIXT.1.1:AGGRET12->MD [DefaultFIXConnection] FIX onLogon
> sessionID: FIXT.1.1:AGGRET12->MD/
>
> Does anybody know whats the issue here? Possibly a quickfix or mina library version issue?
>
> Many Thanks,
>
>
> ----------------------------------------------------------------------------------------------------
>
> This e-mail is for the sole use of the intended recipient and contains information that may be
> privileged and/or confidential. If you are not an intended recipient, please notify the sender by
> return e-mail and delete this e-mail and any attachments. Certain required legal entity
> disclosures can be accessed on our website. <http://site.thomsonreuters.com/site/disclosures/>
>
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:[hidden email]
       


http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------

take care of the environment - print only if necessary

------------------------------------------------------------------------------
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: reconnect behaviour not consistent

Youyu Shao
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


My experience with QuickFixJ initiator side session reconnection is that the FIX session reconnect logic is depend upon the availability of TCP connection. As the TCP is not available in your case, FIX session reconnect will not fire. There is a background thread trying to reestablish the TCP.  It you plug your network back, the session reconnect shall happen.

Youyu

-----Original Message-----
From: Christoph John [mailto:[hidden email]]
Sent: Thursday, December 01, 2016 10:00 AM
To: [hidden email]
Subject: Re: [Quickfixj-users] reconnect behaviour not consistent

QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi,

both processes (dev/test) are configured as initiator? Which QFJ version are you using?
Configurations for both systems (dev/test) are the same?

To me it looks like the process in the dev environment is maybe using an older version of QFJ? There was a bug in versions up to and including 1.6.2 that could lead to not reconnecting the session in initiators.

Regards,
Chris.


On 01/12/16 15:10, [hidden email] wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
>
>
> Hi All,
>
> I am basically testing the Quickfix reconnectivity feature where I
> have ReconnectInterval set to
> 10 sec.
>
> We have 2 different environments where the dev one is running from
> within eclipse and the test one is running independently by referencing jars in the classpath etc.
>
> *In the dev environment if I unplug my network cable I do not see any
> reconnect attempts. Its almost like Quickfix/mina just gives up and If
> and when I reconnect the network cable quickfix doesn't re initiate
> the connection. Message that I see in my logs is pasted below:*
>
> /ERROR EVENT: Disconnecting: Socket exception (/75.98.57.122:14500):
> java.io.IOException: An established connection was aborted by the
> software in your host machine/
>
> /Session Client[1]: Writing Message : WriteRequest: HeapBuffer[pos=0
> lim=37 cap=66: 15 03 03 00 20 BD 57 01 34 23 0E 70 8E 3A BC B7...]/
>
> /FIX onLogout FIXConnection: MyConn sessionID: FIXT.1.1:AGGRET12->MD/
>
> *In the test environment if I unplug my network cable I see that
> quickfix is trying to find a network route to the destination machine
> and it manages to successfully reconnecti once I reconnect the network
> cable. Message that I see in my logs is pasted below:*
>
> /INFO  ~ QFJ Timer [FIXLogger] EVENT: Sent test request TEST/
>
> /INFO  ~ QFJ Timer [FIXLogger] ERR: Disconnecting: Timed out waiting
> for heartbeat/
>
> /INFO  ~ QFJ Timer [DefaultFIXConnection] FIX onLogout sessionID:
> FIXT.1.1:AGGRET12->MD/
>
> //
>
> /  INFO  ~ QFJ Timer [FIXLogger] ERR: java.net.NoRouteToHostException
> during connection to
> 75.98.57.122/75.98.57.122:14500: java.net.NoRouteToHostException: No
> route to host: no further information (Next retry in 10000
> milliseconds)/
>
> /INFO  ~ QFJ Timer [FIXLogger] ERR: java.net.NoRouteToHostException
> during connection to
> 75.98.57.122/75.98.57.122:14500: java.net.NoRouteToHostException: No
> route to host: no further information (Next retry in 10000
> milliseconds)/
>
> /INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not
> established after 4000 ms./
>
> /INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not
> established after 9001 ms./
>
> /INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not
> established after 14002 ms./
>
> /INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not
> established after 19003 ms./
>
> /INFO  ~ QFJ Timer [FIXLogger] ERR: java.net.ConnectException during
> connection to
> 75.98.57.122/75.98.57.122:14500: java.net.ConnectException: Connection
> timed out: no further information (Next retry in 10000 milliseconds)/
>
> /INFO  ~ QFJ Timer [DefaultFIXConnection] FIX toAdmin Message Being sent to counterparty:
> 8=FIXT.1.1_9=86_35=A_34=1_49=AGGRET12_52=20161103-09:44:30.179_56=MD_9
> 8=0_108=10_141=Y_1137=9_10=121_/
>
> /...../
>
> /INFO  ~ QF/J Session dispatcher: FIXT.1.1:AGGRET12->MD [FIXLogger]
> EVENT: Received logon/
>
> /INFO  ~ QF/J Session dispatcher: FIXT.1.1:AGGRET12->MD
> [DefaultFIXConnection] FIX onLogon
> sessionID: FIXT.1.1:AGGRET12->MD/
>
> Does anybody know whats the issue here? Possibly a quickfix or mina library version issue?
>
> Many Thanks,
>
>
> ----------------------------------------------------------------------
> ------------------------------
>
> This e-mail is for the sole use of the intended recipient and contains
> information that may be privileged and/or confidential. If you are not
> an intended recipient, please notify the sender by return e-mail and
> delete this e-mail and any attachments. Certain required legal entity
> disclosures can be accessed on our website.
> <http://site.thomsonreuters.com/site/disclosures/>
>
>
> ----------------------------------------------------------------------
> --------
>
>
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:[hidden email]
       


http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------

take care of the environment - print only if necessary

------------------------------------------------------------------------------
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users


------------------------------------------------------------------------------
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: reconnect behaviour not consistent

Youyu Shao
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Also, you may need patch described in http://www.quickfixj.org/jira/browse/QFJ-895

Thanks,

Youyu

-----Original Message-----
From: Youyu Shao [mailto:[hidden email]]
Sent: Thursday, December 01, 2016 10:53 AM
To: [hidden email]
Subject: Re: [Quickfixj-users] reconnect behaviour not consistent

QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


My experience with QuickFixJ initiator side session reconnection is that the FIX session reconnect logic is depend upon the availability of TCP connection. As the TCP is not available in your case, FIX session reconnect will not fire. There is a background thread trying to reestablish the TCP.  It you plug your network back, the session reconnect shall happen.

Youyu

-----Original Message-----
From: Christoph John [mailto:[hidden email]]
Sent: Thursday, December 01, 2016 10:00 AM
To: [hidden email]
Subject: Re: [Quickfixj-users] reconnect behaviour not consistent

QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi,

both processes (dev/test) are configured as initiator? Which QFJ version are you using?
Configurations for both systems (dev/test) are the same?

To me it looks like the process in the dev environment is maybe using an older version of QFJ? There was a bug in versions up to and including 1.6.2 that could lead to not reconnecting the session in initiators.

Regards,
Chris.


On 01/12/16 15:10, [hidden email] wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
>
>
> Hi All,
>
> I am basically testing the Quickfix reconnectivity feature where I
> have ReconnectInterval set to
> 10 sec.
>
> We have 2 different environments where the dev one is running from
> within eclipse and the test one is running independently by referencing jars in the classpath etc.
>
> *In the dev environment if I unplug my network cable I do not see any
> reconnect attempts. Its almost like Quickfix/mina just gives up and If
> and when I reconnect the network cable quickfix doesn't re initiate
> the connection. Message that I see in my logs is pasted below:*
>
> /ERROR EVENT: Disconnecting: Socket exception (/75.98.57.122:14500):
> java.io.IOException: An established connection was aborted by the
> software in your host machine/
>
> /Session Client[1]: Writing Message : WriteRequest: HeapBuffer[pos=0
> lim=37 cap=66: 15 03 03 00 20 BD 57 01 34 23 0E 70 8E 3A BC B7...]/
>
> /FIX onLogout FIXConnection: MyConn sessionID: FIXT.1.1:AGGRET12->MD/
>
> *In the test environment if I unplug my network cable I see that
> quickfix is trying to find a network route to the destination machine
> and it manages to successfully reconnecti once I reconnect the network
> cable. Message that I see in my logs is pasted below:*
>
> /INFO  ~ QFJ Timer [FIXLogger] EVENT: Sent test request TEST/
>
> /INFO  ~ QFJ Timer [FIXLogger] ERR: Disconnecting: Timed out waiting
> for heartbeat/
>
> /INFO  ~ QFJ Timer [DefaultFIXConnection] FIX onLogout sessionID:
> FIXT.1.1:AGGRET12->MD/
>
> //
>
> /  INFO  ~ QFJ Timer [FIXLogger] ERR: java.net.NoRouteToHostException
> during connection to
> 75.98.57.122/75.98.57.122:14500: java.net.NoRouteToHostException: No
> route to host: no further information (Next retry in 10000
> milliseconds)/
>
> /INFO  ~ QFJ Timer [FIXLogger] ERR: java.net.NoRouteToHostException
> during connection to
> 75.98.57.122/75.98.57.122:14500: java.net.NoRouteToHostException: No
> route to host: no further information (Next retry in 10000
> milliseconds)/
>
> /INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not
> established after 4000 ms./
>
> /INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not
> established after 9001 ms./
>
> /INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not
> established after 14002 ms./
>
> /INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not
> established after 19003 ms./
>
> /INFO  ~ QFJ Timer [FIXLogger] ERR: java.net.ConnectException during
> connection to
> 75.98.57.122/75.98.57.122:14500: java.net.ConnectException: Connection
> timed out: no further information (Next retry in 10000 milliseconds)/
>
> /INFO  ~ QFJ Timer [DefaultFIXConnection] FIX toAdmin Message Being sent to counterparty:
> 8=FIXT.1.1_9=86_35=A_34=1_49=AGGRET12_52=20161103-09:44:30.179_56=MD_9
> 8=0_108=10_141=Y_1137=9_10=121_/
>
> /...../
>
> /INFO  ~ QF/J Session dispatcher: FIXT.1.1:AGGRET12->MD [FIXLogger]
> EVENT: Received logon/
>
> /INFO  ~ QF/J Session dispatcher: FIXT.1.1:AGGRET12->MD
> [DefaultFIXConnection] FIX onLogon
> sessionID: FIXT.1.1:AGGRET12->MD/
>
> Does anybody know whats the issue here? Possibly a quickfix or mina library version issue?
>
> Many Thanks,
>
>
> ----------------------------------------------------------------------
> ------------------------------
>
> This e-mail is for the sole use of the intended recipient and contains
> information that may be privileged and/or confidential. If you are not
> an intended recipient, please notify the sender by return e-mail and
> delete this e-mail and any attachments. Certain required legal entity
> disclosures can be accessed on our website.
> <http://site.thomsonreuters.com/site/disclosures/>
>
>
> ----------------------------------------------------------------------
> --------
>
>
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:[hidden email]
       


http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------

take care of the environment - print only if necessary

------------------------------------------------------------------------------
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users


------------------------------------------------------------------------------
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users


------------------------------------------------------------------------------
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: reconnect behaviour not consistent

Dariusz Nawrocki-2
In reply to this post by ali.n.naqvi
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Hi Ali,
When testing reconnections you should consider tour machinę behaviour. I suspect that your local developmemnt computer simply unconfigures your network interface and you are losing IP address on it when you are unplugging the network cable.
In the test environment the IP address and the network interface probably stays configured.

Try use additional switch between your dev env. and the upstream switch.

Best regards
Darek Nawrocki


1 gru 2016 3:14 PM <[hidden email]> napisał(a):
QuickFIX/J Documentation: <a href="http://www.quickfixj.org/documentation/ QuickFIX/J" rel="noreferrer" target="_blank">http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Hi All,

 

I am basically testing the Quickfix reconnectivity feature where I have ReconnectInterval set to 10 sec.

 

We have 2 different environments where the dev one is running from within eclipse and the test one is running independently by referencing jars in the classpath etc.

 

In the dev environment if I unplug my network cable I do not see any reconnect attempts. Its almost like Quickfix/mina just gives up and If and when I reconnect the network cable quickfix doesn’t re initiate the connection. Message that I see in my logs is pasted below:

 

ERROR EVENT: Disconnecting: Socket exception (/75.98.57.122:14500): java.io.IOException: An established connection was aborted by the software in your host machine

Session Client[1]: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=37 cap=66: 15 03 03 00 20 BD 57 01 34 23 0E 70 8E 3A BC B7...]

FIX onLogout FIXConnection: MyConn sessionID: FIXT.1.1:AGGRET12->MD

 

 

 

In the test environment if I unplug my network cable I see that quickfix is trying to find a network route to the destination machine and it manages to successfully reconnecti once I reconnect the network cable. Message that I see in my logs is pasted below:

 

INFO  ~ QFJ Timer [FIXLogger] EVENT: Sent test request TEST

INFO  ~ QFJ Timer [FIXLogger] ERR: Disconnecting: Timed out waiting for heartbeat

INFO  ~ QFJ Timer [DefaultFIXConnection] FIX onLogout sessionID: FIXT.1.1:AGGRET12->MD

 

  INFO  ~ QFJ Timer [FIXLogger] ERR: java.net.NoRouteToHostException during connection to 75.98.57.122/75.98.57.122:14500: java.net.NoRouteToHostException: No route to host: no further information (Next retry in 10000 milliseconds)

INFO  ~ QFJ Timer [FIXLogger] ERR: java.net.NoRouteToHostException during connection to 75.98.57.122/75.98.57.122:14500: java.net.NoRouteToHostException: No route to host: no further information (Next retry in 10000 milliseconds)

INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not established after 4000 ms.

INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not established after 9001 ms.

INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not established after 14002 ms.

INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not established after 19003 ms.

INFO  ~ QFJ Timer [FIXLogger] ERR: java.net.ConnectException during connection to 75.98.57.122/75.98.57.122:14500: java.net.ConnectException: Connection timed out: no further information (Next retry in 10000 milliseconds)

INFO  ~ QFJ Timer [DefaultFIXConnection] FIX toAdmin Message Being sent to counterparty: 8=FIXT.1.1_9=86_35=A_34=1_49=AGGRET12_52=20161103-09:44:30.179_56=MD_98=0_108=10_141=Y_1137=9_10=121_

.....

INFO  ~ QF/J Session dispatcher: FIXT.1.1:AGGRET12->MD [FIXLogger] EVENT: Received logon

INFO  ~ QF/J Session dispatcher: FIXT.1.1:AGGRET12->MD [DefaultFIXConnection] FIX onLogon sessionID: FIXT.1.1:AGGRET12->MD

 

 

 

 

Does anybody know whats the issue here? Possibly a quickfix or mina library version issue?

 

Many Thanks,




This e-mail is for the sole use of the intended recipient and contains information that may be privileged and/or confidential. If you are not an intended recipient, please notify the sender by return e-mail and delete this e-mail and any attachments. Certain required legal entity disclosures can be accessed on our website.

------------------------------------------------------------------------------

_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users


------------------------------------------------------------------------------

_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: reconnect behaviour not consistent

ali.n.naqvi
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



 

Thanks for your response. However both my environments are hosted on the same machine.

 

 

 

From: Dariusz Nawrocki [mailto:[hidden email]]
Sent: 01 December 2016 17:10
To: [hidden email]
Cc: Naqvi, Ali N. (TR Technology & Ops)
Subject: Re: [Quickfixj-users] reconnect behaviour not consistent

 

Hi Ali,
When testing reconnections you should consider tour machinę behaviour. I suspect that your local developmemnt computer simply unconfigures your network interface and you are losing IP address on it when you are unplugging the network cable.
In the test environment the IP address and the network interface probably stays configured.

Try use additional switch between your dev env. and the upstream switch.

Best regards
Darek Nawrocki

 

1 gru 2016 3:14 PM <[hidden email]> napisał(a):

QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J
Support: http://www.quickfixj.org/support/


Hi All,

 

I am basically testing the Quickfix reconnectivity feature where I have ReconnectInterval set to 10 sec.

 

We have 2 different environments where the dev one is running from within eclipse and the test one is running independently by referencing jars in the classpath etc.

 

In the dev environment if I unplug my network cable I do not see any reconnect attempts. Its almost like Quickfix/mina just gives up and If and when I reconnect the network cable quickfix doesn’t re initiate the connection. Message that I see in my logs is pasted below:

 

ERROR EVENT: Disconnecting: Socket exception (/75.98.57.122:14500): java.io.IOException: An established connection was aborted by the software in your host machine

Session Client[1]: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=37 cap=66: 15 03 03 00 20 BD 57 01 34 23 0E 70 8E 3A BC B7...]

FIX onLogout FIXConnection: MyConn sessionID: FIXT.1.1:AGGRET12->MD

 

 

 

In the test environment if I unplug my network cable I see that quickfix is trying to find a network route to the destination machine and it manages to successfully reconnecti once I reconnect the network cable. Message that I see in my logs is pasted below:

 

INFO  ~ QFJ Timer [FIXLogger] EVENT: Sent test request TEST

INFO  ~ QFJ Timer [FIXLogger] ERR: Disconnecting: Timed out waiting for heartbeat

INFO  ~ QFJ Timer [DefaultFIXConnection] FIX onLogout sessionID: FIXT.1.1:AGGRET12->MD

 

  INFO  ~ QFJ Timer [FIXLogger] ERR: java.net.NoRouteToHostException during connection to 75.98.57.122/75.98.57.122:14500: java.net.NoRouteToHostException: No route to host: no further information (Next retry in 10000 milliseconds)

INFO  ~ QFJ Timer [FIXLogger] ERR: java.net.NoRouteToHostException during connection to 75.98.57.122/75.98.57.122:14500: java.net.NoRouteToHostException: No route to host: no further information (Next retry in 10000 milliseconds)

INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not established after 4000 ms.

INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not established after 9001 ms.

INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not established after 14002 ms.

INFO  ~ QFJ Timer [FIXLogger] EVENT: Pending connection not established after 19003 ms.

INFO  ~ QFJ Timer [FIXLogger] ERR: java.net.ConnectException during connection to 75.98.57.122/75.98.57.122:14500: java.net.ConnectException: Connection timed out: no further information (Next retry in 10000 milliseconds)

INFO  ~ QFJ Timer [DefaultFIXConnection] FIX toAdmin Message Being sent to counterparty: 8=FIXT.1.1_9=86_35=A_34=1_49=AGGRET12_52=20161103-09:44:30.179_56=MD_98=0_108=10_141=Y_1137=9_10=121_

.....

INFO  ~ QF/J Session dispatcher: FIXT.1.1:AGGRET12->MD [FIXLogger] EVENT: Received logon

INFO  ~ QF/J Session dispatcher: FIXT.1.1:AGGRET12->MD [DefaultFIXConnection] FIX onLogon sessionID: FIXT.1.1:AGGRET12->MD

 

 

 

 

Does anybody know whats the issue here? Possibly a quickfix or mina library version issue?

 

Many Thanks,

 



This e-mail is for the sole use of the intended recipient and contains information that may be privileged and/or confidential. If you are not an intended recipient, please notify the sender by return e-mail and delete this e-mail and any attachments. Certain required legal entity disclosures can be accessed on our website.


------------------------------------------------------------------------------

_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users


------------------------------------------------------------------------------

_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Loading...