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
and if I stop the server while downloading a file from a HTTPS URL an ECONNRESET error is emitted twice. Here is a stack trace for both
Error: read ECONNRESET
Trace
at Request.<anonymous> (###.js:81:15)
at emitOne (events.js:82:20)
at Request.emit (events.js:169:7)
at Request.onRequestError (...\node_modules\request\request.js:820:8)
at emitOne (events.js:77:13)
at ClientRequest.emit (events.js:169:7)
at TLSSocket.socketErrorListener (_http_client.js:259:9)
at emitOne (events.js:82:20)
at TLSSocket.emit (events.js:169:7)
at emitErrorNT (net.js:1253:8)
Error: read ECONNRESET
Trace
at Request.<anonymous> (###.js:81:15)
at emitOne (events.js:82:20)
at Request.emit (events.js:169:7)
at Request.onRequestError (...\node_modules\request\request.js:820:8)
at emitOne (events.js:77:13)
at ClientRequest.emit (events.js:169:7)
at TLSSocket.connectionErrorHandler (...\node_modules\request\request.js:81:25)
at TLSSocket.g (events.js:260:16)
at emitOne (events.js:82:20)
at TLSSocket.emit (events.js:169:7)
Is this intended behavior?
And why does the pipe not end on error? Altough calling this.end() explicitly in the first error listener does not lead to the finish event. (Not a streaming expert)
Edit: I learned that the stream unpipes on error so that the end() does not propagate.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I have a request like this:
and if I stop the server while downloading a file from a HTTPS URL an
ECONNRESET
error is emitted twice. Here is a stack trace for bothIs this intended behavior?
And why does the pipe not end on error? Altough calling(Not a streaming expert)this.end()
explicitly in the first error listener does not lead to thefinish
event.Edit: I learned that the stream unpipes on error so that the end() does not propagate.
The text was updated successfully, but these errors were encountered: