       if server.inUseRetryCount < maxRetries
 
         # notify them
-        console.error 'Address in use, retrying in 3 seconds...'
+        console.error "Address in use, retrying in #{retryDelay / 1000} seconds..."
 
         # remember we tried
         server.inUseRetryCount++


module.exports = (options) ->

  {server, listen} = options

  listen ?= -> console.log 'Listening on',server.address()

  retryDelay = options.retryDelay ? 3000
  maxRetries = options.maxRetries ? 3

        # retry in a bit
        setTimeout (->
          # call listen() in the callback
          server.close ->
            server.emit 'relisten'
            relisten()
        ), retryDelay

      # else, we've gone too far. give up.
