Skip to content

Commit 48f5ad9

Browse files
committed
AT for #309
1 parent 25e75d9 commit 48f5ad9

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# issue 309
2+
# When a GapFill skips over seqnos past the ExpectedNextTargetSeqNum,
3+
# the engine needs to skip with it.
4+
5+
iCONNECT
6+
I8=FIX.4.435=A34=149=TW52=<TIME>56=ISLD98=0108=2
7+
E8=FIX.4.435=A34=149=ISLD52=00000000-00:00:00.00056=TW98=0108=210=0
8+
9+
# News msg to bump the seq up
10+
I8=FIX.4.435=B34=249=TW52=<TIME>56=ISLD148=no_echo33=0
11+
12+
# Heartbeat with seq 5 (when 3 is expected)
13+
I8=FIX.4.435=034=549=TW52=<TIME>56=ISLD
14+
15+
# Expect ResendRequest for 3+
16+
E8=FIX.4.435=234=249=ISLD52=00000000-00:00:00.00056=TW7=316=010=0
17+
18+
# Resend 3 and 4
19+
I8=FIX.4.435=B34=343=Y49=TW52=<TIME>56=ISLD148=no_echo33=0
20+
I8=FIX.4.435=B34=443=Y49=TW52=<TIME>56=ISLD148=no_echo33=0
21+
sleep(0.2)
22+
23+
# Session now processes the Heartbeat (seq=5) from its queue
24+
E8=FIX.4.435=034=349=ISLD52=00000000-00:00:00.00056=TW10=0
25+
26+
# Counterparty is still resending - it is on 5 now.
27+
# 5 is that heartbeat, an admin msg, so send a GapFill instead.
28+
# The EndSeqNo is 7, completely skipping over 6.
29+
I8=FIX.4.435=434=549=TW52=<TIME>56=ISLD43=Y122=<TIME-1>36=7123=Y
30+
31+
# Ensure that client obeyed the SequenceReset and set NextExpected=7
32+
I8=FIX.4.435=B34=749=TW52=<TIME>56=ISLD148=foo33=0
33+
E8=FIX.4.435=B34=449=ISLD52=00000000-00:00:00.00056=TW33=0148=foo

0 commit comments

Comments
 (0)