Skip to content

test: deflake test-http-regr-gh-2928

Hard code the value of the host parameter to common.localhostIPv4 in server.listen() and net.connect(). This

  1. ensures that the client socket._handle is not reinitialized during connection due to the family autodetection algorithm, preventing parser.consume() from being called with an invalid socket._handle parameter.
  2. works around an issue in the FreeBSD 12 machine where the stress test is run where some sockets get stuck after connection.

Closes: https://github.com/nodejs/node/pull/49565 Fixes: https://github.com/nodejs/node/issues/49564

Merge request reports

Loading