Skip to content

Commit

Permalink
tcp: ignore result of xmit, continues mirage#310, see mirage#392
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesm committed Feb 7, 2020
1 parent c5c2997 commit 883ff04
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tcp/segment.ml
Expand Up @@ -307,7 +307,10 @@ module Tx (Time:Mirage_time.S) (Clock:Mirage_clock.MCLOCK) = struct
fmt "TCP retransmission triggered by timer! seq = %d"
(Sequence.to_int rexmit_seg.seq));
Lwt.async
(fun () -> xmit ~flags ~wnd ~options ~seq rexmit_seg.data);
(fun () ->
xmit ~flags ~wnd ~options ~seq rexmit_seg.data
(* TODO should this return value really be ignored? *)
>|= fun (_: ('a,'b) result) -> () );
Window.alert_fast_rexmit wnd rexmit_seg.seq;
Window.backoff_rto wnd;
Log.debug (fun fmt -> fmt "Backed off! %a" Window.pp wnd);
Expand Down

0 comments on commit 883ff04

Please sign in to comment.