joyent/smartos-live — pull request #46 by Tenzer (2012-01-23 17:16:25+00:00)
Title: Use callback to make sure we are listening before getting server.address()

I have done some testing with getting Node.js 0.6.x into SmartOS, and it seems to experience a race condition where `server.address()` is not defined when it is assigned to `addr`. The solution to this is to wrap it in a callback which is run when `server.listen()` has been set up.