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