[Fix #3228] idle-timeout not working in cluster mode (#3235)#7
[Fix #3228] idle-timeout not working in cluster mode (#3235)#7MitchLewis930 wants to merge 1 commit intopr_057_beforefrom
idle-timeout not working in cluster mode (#3235)#7Conversation
📝 WalkthroughWalkthroughAdds idle-timeout detection and shutdown orchestration: Server exposes Changes
Sequence DiagramsequenceDiagram
actor Client
participant Server
participant Worker
participant Master
Client->>Server: establish connection
Note over Server: accept loop waiting for activity
rect rgba(255,165,0,0.5)
Note over Server: idle_timeout expires
Server->>Server: set idle_timeout_reached = true
Server->>Server: status = :stop
end
rect rgba(100,150,255,0.5)
Server->>Server: handle_servers -> graceful_shutdown
Server->>Server: stop accepting connections
end
rect rgba(150,100,255,0.5)
Worker->>Master: Process.kill("SIGTERM", master)
Master->>Master: initiate shutdown
end
Client->>Server: reconnect attempt
Server-->>Client: ECONNREFUSED
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
🧰 Additional context used🧬 Code graph analysis (3)test/test_integration_single.rb (2)
test/test_integration_cluster.rb (3)
lib/puma/cluster/worker.rb (1)
🔇 Additional comments (8)
✏️ Tip: You can disable this entire section by setting Comment |
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
PR_057
Summary by CodeRabbit
New Features
Tests