disconnect
event does not fire when the route's options.payload.output
is data
or file
#4339
Labels
support
Questions, discussions, and general support
Support plan
Context
16.13.2
20.2.1
, probably othersWhat are you trying to achieve or the steps to reproduce?
For some reason, when a route's
options.payload.output
is set todata
orfile
, canceling the request from the client does not cause thedisconnect
event (on hapi's request) or theaborted
event (on the underlyingrequest.raw.req
) to fire. This works fine whenoutput
is set tostream
, or for non-payload requests such asGET
A complete reproduction scenario:
What was the result you got?
What result did you expect?
Additional information
If it helps, I somewhat tracked it down to
@hapi/subtext
, ininternals.parse
. If you exit early in the function to treatfile
anddata
asstream
:The tests go green.
So it seems likely that something deeper in
and
may be causing the problem. Unfortunately after taking a look deeper, I couldn't really understand what could be causing this.
The text was updated successfully, but these errors were encountered: