Skip to content

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
// 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
@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