Skip to content

Guard nextWrite against null socket after async close#1168

Open
buttilda wants to merge 1 commit into
porsager:masterfrom
buttilda:guard-nextwrite-against-null-socket
Open

Guard nextWrite against null socket after async close#1168
buttilda wants to merge 1 commit into
porsager:masterfrom
buttilda:guard-nextwrite-against-null-socket

Conversation

@buttilda
Copy link
Copy Markdown

nextWrite can be scheduled via setImmediate and fire after closed() has nulled socket, crashing the whole process with:

TypeError: Cannot read properties of null (reading 'write')

Fixes #1066, #1154

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError: null is not an object (evaluating 'socket.write')

1 participant