Skip to content

test: eval mode net.listen should emit listening

I found this when trying to confirm the format of the address object. The following hangs on most releases of node higher than 0.10.38:

node -e "require('net').createServer().listen(0, function() { console.log(this.address()); this.close(); });"

It seems that Server does not emit a listen event when no address is specified and is called in eval mode.

I don't fully understand how the regression was introduced, but git bisect seemed pretty confident that it was in 5b636fea.

/to @trevnorris for the indicated commit /cc @piscisaureus @sam-github

Merge request reports

Loading