Skip to content

Conversation

jimdigriz
Copy link

@jimdigriz jimdigriz commented Aug 4, 2025

Returning 'false'y tells the sender they need to wait for the 'drain' event which can cause middleware to hang (eg. SvelteKit adapter-node and trpc)

Original fix from @KATT in KATT@9ba260e

Issue #683:

Make response.write() return a bool (always 'true') to prevent middleware stalling waiting for a non-existent drain event.

Description of changes:

...added return true. :)

Checklist

  • Tests have been added and are passing
  • Documentation has been updated

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Returning 'false'y tells the sender they need to wait for the 'drain' event
which can cause middleware to hang (eg. SvelteKit adapter-node and trpc)

Original fix from @KATT in KATT@9ba260e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant