Skip to content

Commit

Permalink
Work around Uri not being thread safe
Browse files Browse the repository at this point in the history
See [issue in Uri](mirage/ocaml-uri#178).
  • Loading branch information
polytypic committed Sep 10, 2024
1 parent d2aa36c commit c765ccc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/picos_io_cohttp/picos_io_cohttp.ml
Original file line number Diff line number Diff line change
Expand Up @@ -312,3 +312,8 @@ module Server = struct
in
accept ()
end

let () =
(* Try to work around Uri not being thread safe *)
Uri.of_string "http://[::::1]:8080" |> ignore;
Uri.of_string "http://localhost:8080/" |> ignore

0 comments on commit c765ccc

Please sign in to comment.