Skip to content

Commit

Permalink
Merge pull request kata-containers#295 from lifupan/hyper-integration
Browse files Browse the repository at this point in the history
agent: disable yamux keep alive
  • Loading branch information
bergwolf authored Jul 7, 2018
2 parents b161535 + cf8d3c8 commit 277c8f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion protocols/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ func agentDialer(addr *url.URL, enableYamux bool) dialer {
}()

var session *yamux.Session
session, err = yamux.Client(conn, nil)
sessionConfig := yamux.DefaultConfig()
// Disable keepAlive since we don't know how much time a container can be paused
sessionConfig.EnableKeepAlive = false
session, err = yamux.Client(conn, sessionConfig)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 277c8f0

Please sign in to comment.