Skip to content

server: destroy socket. - #11

Merged
pinheadmz merged 1 commit into
bcoin-org:masterfrom
nodech:server-close
Jun 8, 2022
Merged

pinheadmz merged 1 commit into
bcoin-org:masterfrom
nodech:server-close

Conversation

@nodech

@nodech nodech commented Jun 8, 2022

Copy link
Copy Markdown
Member

Previously browser + headless would close, because req.destroy would close the connection/socket as well (ECONNRESET).

Since v16.0.0 - nodejs/node#33035
This is no longer the case, req.destroy will just emit close event on the request not the socket. So headless chrome will keep its keep-alive connection (leading to timeout failures in bcrypto test suite for the browser)

This will destroy socket when close is requested from the browser test runner.

@pinheadmz
pinheadmz merged commit 5dcf0c9 into bcoin-org:master Jun 8, 2022
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.

2 participants