Skip to content

Commit

Permalink
fix for file descriptor leak in netplugin
Browse files Browse the repository at this point in the history
  • Loading branch information
vvb committed Feb 23, 2016
1 parent 9769679 commit 9b6e06b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mgmtfn/dockplugin/dockplugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ func InitDockPlugin(netplugin *plugin.NetPlugin) error {
}

log.Infof("docker plugin listening on %s", driverPath)
http.Serve(l, router)
server := &http.Server{Handler: router}
server.SetKeepAlivesEnabled(false)
server.Serve(l)
l.Close()
log.Infof("docker plugin closing %s", driverPath)
}()
Expand Down

0 comments on commit 9b6e06b

Please sign in to comment.