Skip to content

Commit f151e8e

Browse files
authoredMar 20, 2025··
Merge pull request #45 from dinosaure/mono
Use Sequence.greater instead of polymorphic caml_greater
2 parents 0e03bc7 + 062fa23 commit f151e8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/input.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ let deliver_in_2 m stats now id conn seg ack =
159159
tt_delack = None ;
160160
snd_una = Sequence.incr cb.iss ; (*: ack ; = cb.iss + 1, or +2 if full ack of SYN,FIN :*)
161161
snd_nxt = if conn.cantsndmore then ack else cb.snd_nxt ;
162-
snd_max = if conn.cantsndmore && ack > cb.snd_max then ack else cb.snd_max ;
162+
snd_max = if conn.cantsndmore && Sequence.greater ack cb.snd_max then ack else cb.snd_max ;
163163
snd_wl1 = Sequence.incr seg.seq ;
164164
snd_wl2 = ack ;
165165
snd_wnd = seg.window ; (* this is a SYN segment, so window scaling is ignored *)

0 commit comments

Comments
 (0)
Please sign in to comment.