lib: move default address logic to `net._listen2`
authorVladimir Kurchatkin <vladimir.kurchatkin@gmail.com>
Wed, 21 Jan 2015 12:38:44 +0000 (15:38 +0300)
committerBen Noordhuis <info@bnoordhuis.nl>
Fri, 23 Jan 2015 17:09:39 +0000 (18:09 +0100)
commit8de89ec465d8f1e31521e0b888c19b0a3309cd88
tree46f67e8032a4e30b359c3e1addca43f467c6df7e
parent3143d732f6efd82da76e9c53ad192ac14071bf70
lib: move default address logic to `net._listen2`

When address is not provided to `server.listen()`, `_connectionKey` and
error messages should include actual address and correct family.

PR-URL: https://github.com/iojs/io.js/pull/539
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
lib/net.js
test/sequential/test-net-server-bind.js