Commit c3d6b1ca authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #38252 from linyouchong/linyouchong-20161207

Automatic merge from submit-queue (batch tested with PRs 38252, 41122, 36101, 41017, 41264) fix bug of runServer function in server.go What this PR does / why we need it: use parameter network instead of hardcode 'tcp' / the parameter network here is not equal to 'tcp' **Special notes for your reviewer**: NONE **Release note**: NONE
parents b88b31cf d74ef651
...@@ -149,7 +149,7 @@ func runServer(server *http.Server, network string, stopCh <-chan struct{}) (int ...@@ -149,7 +149,7 @@ func runServer(server *http.Server, network string, stopCh <-chan struct{}) (int
for { for {
time.Sleep(15 * time.Second) time.Sleep(15 * time.Second)
ln, err = net.Listen("tcp", server.Addr) ln, err = net.Listen(network, server.Addr)
if err == nil { if err == nil {
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment