Refactor API socket handling

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Upstream-commit: 62806cc85e7faee56acc454b67b8f36786472759
Component: engine
This commit is contained in:
Michael Crosby
2015-03-31 13:37:49 -07:00
parent c31a2f1ade
commit 358cb6ec63
6 changed files with 233 additions and 197 deletions
-1
View File
@@ -151,7 +151,6 @@ func mainDaemon() {
job.Setenv("TlsCa", *flCa)
job.Setenv("TlsCert", *flCert)
job.Setenv("TlsKey", *flKey)
job.SetenvBool("BufferRequests", true)
// The serve API job never exits unless an error occurs
// We need to start it as a goroutine and wait on it so