test: fix test-http-flush on Windows
authorAlexis Campailla <alexis@janeasystems.com>
Fri, 2 May 2014 15:22:19 +0000 (11:22 -0400)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Fri, 2 May 2014 15:39:47 +0000 (08:39 -0700)
commit29518c17bea427924bb2179ea1b5429f89850266
tree3064f7619263efc6a1e560a25f0c5124c9235236
parenta6583ebd1131e8a4fc8687c5afaa8082f29e9a10
test: fix test-http-flush on Windows

On Windows we cannot get the server address until a connection
is accepted.

From MSDN:
The getsockname function does not always return information about
the host address when the socket has been bound to an unspecified
address, unless the socket has been connected with connect or accept
(for example, using ADDR_ANY). A Windows Sockets application must not
assume that the address will be specified unless the socket is
connected.

Signed-off-by: Timothy J Fontaine <tjfontaine@gmail.com>
test/simple/test-http-flush.js