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
- ensures that the client
socket._handle
is not reinitialized during connection due to the family autodetection algorithm, preventingparser.consume()
from being called with an invalidsocket._handle
parameter. - 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