Skip to content

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

Merged
merged 2 commits into from
Jul 8, 2024
Merged

Added shutdown handler for Classic Server #8165

merged 2 commits into from
Jul 8, 2024

Conversation

Zhdanov0
Copy link
Contributor

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.

@AlexPeshkoff AlexPeshkoff self-assigned this Jun 24, 2024
@@ -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
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

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

@dyemanov
Copy link
Member

dyemanov commented Jul 8, 2024

Alex, any other suggestions or is it OK for merging?

@AlexPeshkoff AlexPeshkoff merged commit 6e7596f into FirebirdSQL:master Jul 8, 2024
24 checks passed
@AlexPeshkoff
Copy link
Member

I suggest to backport it to 5 & 4.

dyemanov pushed a commit that referenced this pull request Jul 10, 2024
Co-authored-by: Alexander Zhdanov <alexander.zhdanov@red-soft.ru>
dyemanov pushed a commit that referenced this pull request Jul 10, 2024
Co-authored-by: Alexander Zhdanov <alexander.zhdanov@red-soft.ru>
@dyemanov
Copy link
Member

Backported.

@dyemanov dyemanov changed the title Added shutdown handler for server Added shutdown handler for Classic Server Jul 31, 2024
dyemanov pushed a commit that referenced this pull request Nov 16, 2024
Co-authored-by: Alexander Zhdanov <alexander.zhdanov@red-soft.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants