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

Commit

Permalink
virtcontainers: GetOOMEvent should have no timeout
Browse files Browse the repository at this point in the history
fixes: #2695

Signed-off-by: bin liu <[email protected]>
  • Loading branch information
liubin authored and lb203159 committed May 21, 2020
1 parent 9e4b610 commit f76d739
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 f76d739

Please sign in to comment.