Skip to content

Commit

Permalink
fix: missing error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Nov 21, 2024
1 parent 70f7314 commit e3133bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/dispatcher/client-h1.js
Original file line number Diff line number Diff line change
Expand Up @@ -769,8 +769,15 @@ async function connectH1 (client, socket) {
client[kSocket] = socket

if (!llhttpInstance) {
const noop = () => {}
socket.on('error', noop)
llhttpInstance = await llhttpPromise
llhttpPromise = null
socket.off('error', noop)

if (socket.errored) {
throw socket.errored
}
}

socket[kNoRef] = false
Expand Down

0 comments on commit e3133bf

Please sign in to comment.