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
Failure making HTTP request to unix socket #1615
Comments
Can't even get that far on master...
|
I can confirm your observation on master |
emilengler
added a commit
to emilengler/libevent
that referenced
this issue
Apr 12, 2024
This commit disables the property of TCP keepalive on Unix domain sockets, because they essentially serve no purpose here, except for causing problems on Windows and macOS systems. Fixes libevent#1615
azat
pushed a commit
that referenced
this issue
Apr 24, 2024
This commit disables the property of TCP keepalive on Unix domain sockets, because they essentially serve no purpose here, except for causing problems on Windows and macOS systems. Fixes #1615
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Built from source on macOS:
Run http server example, binding to local unix socket:
Execute request from second terminal:
the libevent http server crashes with this output:
Looking through the code, I see that we call
name_from_addr()
fromevhttp_get_request()
. This passes the socket directly togetnameinfo()
which does not support AF_UNIX.The text was updated successfully, but these errors were encountered: