The-DevOps-Daily/pg-wire-mock

Add Graceful Shutdown Handling

Open

#58 opened on Sep 26, 2025

View on GitHub
 (3 comments) (0 reactions) (1 assignee)JavaScript (15 forks)github user discovery
hacktoberfest

Repository metrics

Stars
 (26 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Improve server shutdown behavior to ensure connections are cleanly closed.

Description: When the server is shutting down, it should properly close all client connections and clean up resources.

Tasks:

  • Add shutdown notification to clients
  • Implement graceful connection termination
  • Add timeout for force-closing lingering connections
  • Add connection draining during shutdown
  • Create tests for shutdown behavior
  • Update documentation

Related files:

  • src/server/serverManager.js

Contributor guide