Skip to content

Commit 0e03bc7

Browse files
authored
Merge pull request #42 from robur-coop/adjust-to-spec
Adjust code to specification, the bsd_fast_path is triggered when ack <= snd_max
2 parents 81d55e1 + 01d3c73 commit 0e03bc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ let di3_datastuff now the_ststuff conn seg ourfinisacked fin ack =
823823
Sequence.equal seg.seq cb.rcv_nxt &&
824824
cb.snd_wnd = win &&
825825
Sequence.equal cb.snd_max cb.snd_nxt &&
826-
((Sequence.greater ack cb.snd_una && Sequence.less ack cb.snd_max &&
826+
((Sequence.greater ack cb.snd_una && Sequence.less_equal ack cb.snd_max &&
827827
cb.snd_cwnd >= cb.snd_wnd && cb.t_dupacks < 3)
828828
|| (Sequence.equal ack cb.snd_una && Reassembly_queue.is_empty cb.t_segq &&
829829
Cstruct.length seg.payload < conn.rcvbufsize - Cstruct.lenv conn.rcvq))

0 commit comments

Comments
 (0)