ocaml-multicore / eio

Effects-based direct-style IO for multicore OCaml
Other
559 stars 72 forks source link

eio_windows: work around problems in Unix.getaddrinfo #780

Closed talex5 closed 1 day ago

talex5 commented 2 days ago

OCaml's Unix.getaddrinfo on Windows doesn't set ai_protocol to anything useful, so you can't tell which addresses are TCP and which are UDP. So, do two separate queries.

Needed for https://github.com/mirage/capnp-rpc/issues/286.