[FX-927] Seqno not increased in logon for ReliableClientSession - Fix8 JIRA

Seqno not increased in logon for ReliableClientSession

Description

After client session (fix8) was aborted as there was no answer from the remote side after a test request, logon message was sent and the sequence no in that request is same as the sequence no in the test request. This causes the server side to logout the client with a seqno mismatch message. After this logout message, reliableclientsession does not retry to connect.

Protocol logs:
8=FIXT.1.1^A9=76^A35=1^A49=BIIYM^A50=FCQ02^A56=BI_TEST^A34=7520^A52=20181114-20:17:05.956^A112=TEST^A10=095^A
8=FIXT.1.1^A9=126^A35=5^A49=BIIYM^A50=FCQ02^A56=BI_TEST^A34=7521^A52=20181114-20:17:06.963^A58=Remote has ignored my test request. Aborting session...^A10=057^A
8=FIXT.1.1^A9=000058^A35=0^A49=BI_TEST^A56=BIIYM^A34=4846^A52=20181114-20:17:07.998^A10=061^A
8=FIXT.1.1^A9=117^A35=A^A49=BIIYM^A50=FCQ02^A56=BI_TEST^A34=7521^A52=20181114-20:17:18.002^A98=0^A108=10^A553=IYM_FIXCOLOQOT2^A554=123456^A1137=9^A10=074^A
8=FIXT.1.1^A9=000158^A35=5^A49=BI_TEST^A56=BIIYM^A34=4849^A52=20181114-20:17:18.032^A1409=4^A58=Lower sequence received than expected without PossDup flag. Expected/Received = 7522/7521^A10=065^A

Session logs:
0000202 2018-11-14 17:35:05.440608588 00001626 C Warn Have not received anything from remote for 13 secs. Sending test request
0000203 2018-11-14 17:35:05.440819223 00001626 C Info CLIENT( DLD2 ):continuous => test_request_sent
0000204 2018-11-14 17:35:06.447838666 00001627 C Info CLIENT( DLD2 ):test_request_sent => logoff_sent
0000205 2018-11-14 17:35:06.447847044 00001627 C Error Remote has ignored my test request. Aborting session...
0000206 2018-11-14 17:35:06.878208606 00001627 B connection.cpp:148 Info FIXReader: 143 messages processed, 0 dropped, 0 invalid
0000207 2018-11-14 17:35:16.879224011 00001637 A session.cpp:178 Info Starting session
0000208 2018-11-14 17:35:16.879244664 00001637 A connection.cpp:350 Info Trying to connect to: 194.0.142.188:17998 (1) not-secured
0000209 2018-11-14 17:35:16.879526301 00001637 A connection.cpp:358 Info Connection successful
0000210 2018-11-14 17:35:16.879578164 00001637 A session.cpp:185 Info Session connected
0000211 2018-11-14 17:35:16.879644227 00001637 A Info CLIENT( DLD2 ):logoff_sent => not_logged_in
0000212 2018-11-14 17:35:16.879655378 00001637 A session.cpp:1132 Info Last sent: 5324, last received: 2909
0000213 2018-11-14 17:35:16.879775116 00001637 A Info CLIENT( DLD2 ):not_logged_in => logon_sent
0000214 2018-11-14 17:35:16.894775871 00001637 B Info logout received from exchange gateway!!
0000215 2018-11-14 17:35:16.894787142 00001637 B Info CLIENT( DLD2 ): logout received from exchange gateway!!
0000216 2018-11-14 17:35:25.784261919 00001646 D session.cpp:1116 Error Connection reset by peer
0000217 2018-11-14 17:35:26.262620769 00001646 D session.cpp:1116 Error I/O error: Broken pipe
0000218 2018-11-14 17:35:26.263118100 00001646 D session.cpp:1116 Error I/O error: Broken pipe
0000219 2018-11-14 17:35:26.264240669 00001646 E session.cpp:1116 Error I/O error: Broken pipe
0000220 2018-11-14 17:35:26.265320156 00001646 D session.cpp:1116 Error I/O error: Broken pipe
0000221 2018-11-14 17:35:26.266044282 00001646 E session.cpp:1116 Error I/O error: Broken pipe
0000222 2018-11-14 17:35:28.794353447 00001649 D session.cpp:1116 Error I/O error: Broken pipe

Environment

None

Status

Assignee

David Dight

Reporter

Cinar Eren

Labels

None

Branch

dev

Products

Open Source

Components

Fix versions

Affects versions

1.4.0

Priority

Major