Skip to content
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

Merged
merged 5 commits into from Apr 23, 2018
Merged

Conversation

timneutkens
Copy link
Member

@timneutkens timneutkens commented Apr 23, 2018

As per @rauchg's request, added --unix-socket which will bind to a unix socket.

@timneutkens timneutkens requested review from nkzawa and leo April 23, 2018 03:40
bin/micro.js Outdated
alias: {
p: 'port',
H: 'host',
s: 'socket',
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 good call

@timneutkens timneutkens changed the title Add support for —socket Add support for --socket Apr 23, 2018
@timneutkens timneutkens changed the title Add support for --socket Add support for --unix-socket Apr 23, 2018
bin/micro.js Outdated

const shutdown = () => {
console.log('Gracefully shutting down')
server.close()
Copy link
Contributor

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 🤔

@timneutkens timneutkens merged commit f3b2978 into vercel:master Apr 23, 2018
@timneutkens timneutkens deleted the add/socket branch April 23, 2018 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants