Skip to content

Commit c765ccc

Browse files
committed
Work around Uri not being thread safe
See [issue in Uri](mirage/ocaml-uri#178).
1 parent d2aa36c commit c765ccc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/picos_io_cohttp/picos_io_cohttp.ml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,3 +312,8 @@ module Server = struct
312312
in
313313
accept ()
314314
end
315+
316+
let () =
317+
(* Try to work around Uri not being thread safe *)
318+
Uri.of_string "http://[::::1]:8080" |> ignore;
319+
Uri.of_string "http://localhost:8080/" |> ignore

0 commit comments

Comments
 (0)