We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ba2e7e commit bb6e85dCopy full SHA for bb6e85d
src/tcp/state.ml
@@ -151,7 +151,13 @@ module Make(Time:Mirage_time.S) = struct
151
| Fin_wait_2 _, Recv_fin ->
152
Lwt.async (fun () -> timewait t time_wait_time);
153
Time_wait
154
- | Closing a, Recv_ack b -> if diffone b a then Time_wait else Closing a
+ | Closing a, Recv_ack b ->
155
+ if diffone b a then
156
+ begin
157
+ Lwt.async (fun () -> timewait t time_wait_time);
158
+ Time_wait
159
+ end
160
+ else Closing a
161
| Closing _, Timeout -> t.on_close (); Closed
162
| Closing _, Recv_rst -> t.on_close (); Reset
163
| Time_wait, Timeout -> t.on_close (); Closed
0 commit comments