-
-
Notifications
You must be signed in to change notification settings - Fork 361
Fix graceful shutdown not awaiting server.stop #1455
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughBun and Web Standard adapters now await the underlying server's asynchronous stop operation; Bun's beforeExit handler is made async. A test was updated to call Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor OS as OS/Runtime
participant BunAdapter as Bun Adapter
participant Server
OS->>BunAdapter: beforeExit
Note over BunAdapter: beforeExit is async (awaits stop)
BunAdapter->>Server: stop(closeActiveConnections)
activate Server
Server-->>BunAdapter: Promise resolved
deactivate Server
BunAdapter-->>OS: beforeExit completes
sequenceDiagram
autonumber
participant App
participant WebStdAdapter as Web Standard Adapter
participant Server
App->>WebStdAdapter: stop(closeActiveConnections)
WebStdAdapter->>Server: stop(closeActiveConnections)
activate Server
Server-->>WebStdAdapter: Promise resolved
deactivate Server
WebStdAdapter-->>App: stop() resolved
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
497b20b
to
d5d284d
Compare
b17c859
to
55b7a16
Compare
Summary by CodeRabbit
Bug Fixes
Refactor
Breaking Changes