Skip to content

Commit 883ff04

Browse files
committed
tcp: ignore result of xmit, continues mirage#310, see mirage#392
1 parent c5c2997 commit 883ff04

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tcp/segment.ml

+4-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,10 @@ module Tx (Time:Mirage_time.S) (Clock:Mirage_clock.MCLOCK) = struct
307307
fmt "TCP retransmission triggered by timer! seq = %d"
308308
(Sequence.to_int rexmit_seg.seq));
309309
Lwt.async
310-
(fun () -> xmit ~flags ~wnd ~options ~seq rexmit_seg.data);
310+
(fun () ->
311+
xmit ~flags ~wnd ~options ~seq rexmit_seg.data
312+
(* TODO should this return value really be ignored? *)
313+
>|= fun (_: ('a,'b) result) -> () );
311314
Window.alert_fast_rexmit wnd rexmit_seg.seq;
312315
Window.backoff_rto wnd;
313316
Log.debug (fun fmt -> fmt "Backed off! %a" Window.pp wnd);

0 commit comments

Comments
 (0)