Re: handling session connection problems

82 views
Skip to first unread message
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Mazz Barker

unread,
Aug 15, 2016, 12:24:45 AM8/15/16
to fix8 developer
Works as implemented. This is documented in the wiki.
/Mazz

On Wednesday, June 15, 2016 at 7:16:26 PM UTC+10, Cinar Eren wrote:
Hello,

If this parameter is given true, my code waits at this function call until the connection retries are finished. So i can check if connection is up after this function.

BR.

On Sunday, June 12, 2016 at 12:42:13 PM UTC+3, Cinar Eren wrote:
Hello,

What is the correct way to handle client session connection problems?
When i try to run the sample myfix.cpp in client mode with a remote server which is down, i see the following errors in the session log:

0000001 2016-06-12 12:36:58.069990558 00000000 A session.cpp:178 Info  Starting session
0000002 2016-06-12 12:36:58.070005531 00000000 A connection.cpp:340 Info  Trying to connect to: 172.16.1.255:17130 (1) not-secured
0000003 2016-06-12 12:36:58.070952207 00000000 A connection.cpp:355 Error exception: Connection refused
0000004 2016-06-12 12:37:01.071323551 00000003 A connection.cpp:340 Info  Trying to connect to: 172.16.1.255:17130 (2) not-secured
0000005 2016-06-12 12:37:01.071396548 00000003 A connection.cpp:355 Error exception: Software caused connection abort
0000006 2016-06-12 12:37:04.071911864 00000006 A connection.cpp:340 Info  Trying to connect to: 172.16.1.255:17130 (3) not-secured
0000007 2016-06-12 12:37:04.072966948 00000006 A connection.cpp:355 Error exception: Connection refused


And when i send a CtrlC signal to the running program, it exits with the following error:
terminate called after throwing an instance of 'Poco::Net::NetException'
  what():  Net Exception



Reply all
Reply to author
Forward
0 new messages