-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error code from getaddrinfo is lost #835
Comments
That does seem wrong @Lupus. I checked the standard I think we should add error handling. I also suggest to report the issue to the OCaml repo if you can confirm it, so we can get the benefit of any extra discussion from the OCaml team, and/or fix the (likely) bug there, as well. |
Well, one of the most immediate issues is that the |
They do, however, appear in the POSIX man pages for the functions, e.g. https://man7.org/linux/man-pages/man3/freeaddrinfo.3p.html#ERRORS. So this could be an argument for adding them (eventually?). They are also present in libuv (http://docs.libuv.org/en/v1.x/errors.html#error-constants), which is part of why I forgot they are missing from |
In the near term, we could map all of them to |
I don't have a minimal reproducible test case for that, I only see that sometimes I get exceptions from
Probably we could get stringified message for |
It seems that in case of
getaddrinfo
failure, the error is... lost?lwt/src/unix/unix_c/unix_getaddrinfo_job.c
Line 74 in 1157930
There is no "else" branch here. I get empty list from
Lwt_unix.getaddrinfo
and I'm trying to figure out why that happens.The text was updated successfully, but these errors were encountered: