-
Notifications
You must be signed in to change notification settings - Fork 457
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
Add support for --unix-socket
#353
Conversation
bin/micro.js
Outdated
alias: { | ||
p: 'port', | ||
H: 'host', | ||
s: 'socket', |
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.
We might call it unix-socket
to make it clear? which is curl
's option name.
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.
👍 good call
bin/micro.js
Outdated
|
||
const shutdown = () => { | ||
console.log('Gracefully shutting down') | ||
server.close() |
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.
It seems there is another handler listening SIGTERM
🤔
As per @rauchg's request, added
--unix-socket
which will bind to a unix socket.