Closed Wenke-D closed 1 month ago
It just means that connect
failed.
Connecting is a 3 step process:
connect
to start connecting (getting EINPROGRESS
).connect
again to get the result.The -in-progress
is just a hint that it was the second call that returned the error.
Maybe "connect (collecting result)" or something would be clearer.
Thanks for the reply, so what does it mean for application ? In this case, how should I handle this error, if I still want to make the connection ?
You can catch connection errors like this:
try ... with Eio.Io (Eio.Net.E Connection_failure _, _) -> ...
(see https://github.com/ocaml-multicore/eio?tab=readme-ov-file#error-handling)
Hello, when I try to connect a address where there is no tcp server listening, I will get an error (obviously), but the error message is very confusing
What does the
connect-in-progress
mean ?I trace this string down to the
eio/lib_eio_posix/low_level.ml
but there is no explanation. Could you please explain a little ?