-
-
Notifications
You must be signed in to change notification settings - Fork 240
Added shutdown handler for Classic Server #8165
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
@@ -314,6 +315,10 @@ int CLIB_ROUTINE main( int argc, char** argv) | |||
// activate paths set with -e family of switches | |||
ISC_set_prefix(0, 0); | |||
|
|||
// set shutdown signals handler for listener |
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.
Does it make sense to add this handlers in super & superclassic modes?
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.
No, it's only relevant to classic
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.
I'll add a condition
Alex, any other suggestions or is it OK for merging? |
I suggest to backport it to 5 & 4. |
Co-authored-by: Alexander Zhdanov <alexander.zhdanov@red-soft.ru>
Co-authored-by: Alexander Zhdanov <alexander.zhdanov@red-soft.ru>
Backported. |
Co-authored-by: Alexander Zhdanov <alexander.zhdanov@red-soft.ru>
Added shutdown handler for server to avoid active connections after termination.
If you start the server with classic mode, then at the end of the server, there are still active connections.