-
-
Notifications
You must be signed in to change notification settings - Fork 87
Option to have http.server listen on a unix socket instead of TCP #8
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
Conversation
|
Furthermore, if you're allowing binding unix sockets, you should probably add support for the
|
http/server.lua
Outdated
assert(host or path, "need host or path") | ||
local port = tbl.port | ||
if port == nil then | ||
if port == nil and tbl.host then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just use host
instead of indexing again.
Blocked on #9 |
#9 was resolved. Are you able to resolve my other comments? |
spec/server_spec.lua
Outdated
stream:get_headers() | ||
stream:shutdown() | ||
s:shutdown() | ||
print 'shutting down server // spy' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove these prints.
Remember to remove the --server option once released
…fields Fixes issue where a custom host/port were not retained over a relative redirect
…* shutting down, but signal other streams *after*
At that time: - request method is unknown - support for transfer-encodings is unknown - peer HTTP version is unknown
…hen using UNIX domain sockets
Closing for reformatting commits, will create a new PR later. |
Review (http://stackoverflow.com/questions/15716302/so-reuseaddr-and-af-unix) on whether SO_REUSEADDR should be kept?