We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a427e4b commit 6551919Copy full SHA for 6551919
lib/dispatcher/client-h1.js
@@ -769,8 +769,19 @@ async function connectH1 (client, socket) {
769
client[kSocket] = socket
770
771
if (!llhttpInstance) {
772
+ const noop = () => {}
773
+ socket.on('error', noop)
774
llhttpInstance = await llhttpPromise
775
llhttpPromise = null
776
+ socket.off('error', noop)
777
+ }
778
+
779
+ if (socket.errored) {
780
+ throw socket.errored
781
782
783
+ if (socket.destroyed) {
784
+ throw new SocketError('destroyed')
785
}
786
787
socket[kNoRef] = false
0 commit comments