| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
bugbot run |
Sorry, something went wrong.
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 2c481c7. Configure here.
Sorry, something went wrong.
size-limit report 📦
|
Sorry, something went wrong.
A repeated init() registered another SIGTERM handler and response-finish subscriber per client, so replaced clients kept being flushed and every response got an extra waitUntil. Register the listeners once and flush the current client. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The keep-alive listeners are registered once per module instance, so a second init() on Vercel in the same test file no longer adds a SIGTERM listener. Give each Vercel test a fresh module instance. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
| Back | FazBrowse Home | New Git URL |
On Vercel, each init() call registered another SIGTERM handler and another http.server.response.finish subscriber, each tied to its own client. A repeated init() replaces the client, so the old handlers kept flushing the replaced client and added an extra waitUntil to every response. Surfaced by the Sentry review on #25125.
The listeners are now registered once and flush whichever client is current. A replaced client is no longer flushed on SIGTERM. That matches docs/repeated-init.md (repeated init() is unsupported, and buffered data stays on the old client), and it keeps the 500ms SIGTERM window for the active client.