Skip to content

Commit a38a809

Browse files
committed
Forgot to close socket in case of 2 many connection in a recent rewrite of the accept loop
1 parent 26b5856 commit a38a809

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Async.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,6 +1222,7 @@ let accept_loop (domains : Domain.id Array.t) listens pipes maxc =
12221222
raise e
12231223
with
12241224
| Full ->
1225+
(try Unix.close lsock with Unix.Unix_error _ -> ());
12251226
Log.f (Exc 0) (fun k -> k "handler: reject too many clients");
12261227

12271228
in

0 commit comments

Comments
 (0)