We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc95efb commit 37c8eacCopy full SHA for 37c8eac
cohttp-eio/examples/client_timeout.ml
@@ -9,7 +9,7 @@ let () =
9
Eio.Time.with_timeout env#clock timeout_s (fun () ->
10
let host, port = ("www.example.org", 80) in
11
let he = Unix.gethostbyname host in
12
- let addr = `Tcp (Eio_unix.Ipaddr.of_unix he.h_addr_list.(0), port) in
+ let addr = `Tcp (Eio_unix.Net.Ipaddr.of_unix he.h_addr_list.(0), port) in
13
let conn = Net.connect ~sw env#net addr in
14
let res = Client.get ~conn ~port env ~host "/" in
15
Client.read_fixed res |> Result.ok)
0 commit comments