You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
onResponse hook is not executed when Client close the connection #1099
When Client close the connection while the server is processing the request,the onResponse Hook is not executed.
Is the framework designed this way? If so, how should I deal with this situation?
Activity
climba03003 commentedon Jun 10, 2025
onResponsehook only execute when theOutgoingMessageisfinishorerror.finishmeans you have send back the response to client.errormeans theOutgoingMessageis throwing error.I believe the aborted request is not in any of the above case.
untineo commentedon Jun 11, 2025
Thanks for the reply, so do you have any good advice on how to handle this situation? #
untineo commentedon Jun 11, 2025
and i find the onSend hook is executed, can i use this hook to handle the situation?