Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2696 from liubin/master
Browse files Browse the repository at this point in the history
virtcontainers: GetOOMEvent should have no timeout
  • Loading branch information
amshinde authored May 21, 2020
2 parents e7df922 + f76d739 commit 5cef3e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virtcontainers/kata_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -2008,8 +2008,8 @@ func (k *kataAgent) installReqFunc(c *kataclient.AgentClient) {
func (k *kataAgent) getReqContext(reqName string) (ctx context.Context, cancel context.CancelFunc) {
ctx = context.Background()
switch reqName {
case grpcWaitProcessRequest:
// Wait has no timeout
case grpcWaitProcessRequest, grpcGetOOMEventRequest:
// Wait and GetOOMEvent have no timeout
case grpcCheckRequest:
ctx, cancel = context.WithTimeout(ctx, checkRequestTimeout)
default:
Expand Down

0 comments on commit 5cef3e7

Please sign in to comment.