dotcloud/docker — pull request #4168 by crosbymichael (2014-02-16 05:16:21+00:00)
Title: Hold connections until the daemon has fully loaded

The PRs adds a new pkg, `listenbuffer` that wraps the net.Listener interface so that the connection, unix socket, tcp, etc can be opened immediately but holds connections until the docker daemon has fully loaded and is ready.

This fixes the errors where the docker daemon is still booting but someone tries to make a request and receives the unix socket does not exist or other error messages like that.