Skip to content

Commit 77ea165

Browse files
dinosaurehannesm
authored andcommitted
Close the file-descriptor on the client side in any situations
1 parent ff20648 commit 77ea165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

miou/tests/fuzz.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ let run_client ~to_client:actions cfg addr =
155155
let fd = Miou_unix.of_file_descr ~non_blocking:true socket in
156156
let tls = Tls_miou_unix.client_of_fd cfg fd in
157157
let finally () =
158-
inhibit (fun () -> Miou_unix.close (Tls_miou_unix.file_descr tls))
158+
inhibit (fun () -> Unix.close socket)
159159
in
160160
Fun.protect ~finally @@ fun () -> run ~role:"client" actions tls
161161

0 commit comments

Comments
 (0)