-
Notifications
You must be signed in to change notification settings - Fork 143
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
Multiple listeners support #12
Comments
I would merge such a pull request but I don't think I'll be adding that functionality all on my own. For my purposes, at least, there is only one |
👍 on the concept. Is it possible to incorporate outbound connections too, I wonder.. |
It's possible to inherit and reconstitute all sorts of file descriptors, sure, but maintaining the application state of each of those file descriptors across process restarts is very hairy. |
I have a process that listens on port 80 and 443.. I'm using facebookgo's grace reloader, but it doesnt seem to support upstart. Any chance this would ? |
I have multiple listeners (like two listening on port :8080 and 8081 and one listening to https on 443 port). That means I have now three listeners. However the nature of goagain doesn't allow to use it with several listeners. I can split my app that it runs like three binaries but this would be not a good choice.
I've hacked a little on goagain to support for multiple listeners, a sneak code:
However I don't like the way the file descriptors are created. Because I have to create the array earlier to append the FD's to the
files
arary, like:Here, 30 is just an integer that's large enough. I've tried to use
append
onfiles
array. However when I use append it's breaking goagain with this err:It seems it is working quite well. Do you have any plans to support multiple listeners?
The text was updated successfully, but these errors were encountered: