Files
nats-server/server
Ivan Kozlovic 5f471b6e7f Replace GetListenEndpoint() with ReadyForConnections()
The RunServer() function (and the various variants)
call Server.Start() in a go-routine, but do not return until
it has verified that the server is ready to accept connections.
To do so, it use GetListenEndpoint() to get a suitable connect
address (replacing "0.0.0.0" or "::" with localhost - important
on Windows). It then creates a raw TCP connection to ensure the
server is started, repeating the process in case of failure up
to 10 seconds.

This PR replaces this with a function that checks that client
listener, and route listener if configured, are set. This removes
the need to get a connect address and create test tcp connections.

The reason for this change is that NATS Streaming when starting
the NATS Server (unless configured to connect to a remote one)
calls RunServerWithAuth(), which when getting "localhost" from
GetListenEndpoint(), would fail trying to resolve it. This happened
for the NATS Streaming Docker image built with Go 1.7+.
2016-12-09 14:03:45 -07:00
..
2016-11-22 20:07:39 -08:00
2016-12-02 14:29:22 -08:00
2016-09-12 11:03:19 -04:00
2016-12-02 14:29:22 -08:00
2016-12-02 15:14:36 -08:00
2016-11-22 16:22:51 -07:00
2016-04-03 13:04:06 -07:00
2016-07-11 12:16:21 -07:00
2016-03-20 15:57:43 -10:00