Replies: 1 comment
-
I've just encountered this as well. I tried to un/bind the port in a reliable app that reinitializes components and retries its whole workflow on any error encountered. Unfortunatley, I've found no way to unbind the server port and this prevents me from properly reinitializing the application. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Just like
iris
(a Golang web framework) does.Perform hot reload automatically and safely, following these steps:
IN_CLOSE_WRITE
signal for new version binary.IN_CLOSE_WRITE
signal caught) Set executable permission to new version binary.handle().stop(true)
) the old version binaryAll steps can be done by myself except
4
Is it possible to provide a function to stop listening immediately so that the address/port can be used by new version binary?
Beta Was this translation helpful? Give feedback.
All reactions