Skip to content

Commit

Permalink
virtcontainers: GetOOMEvent should have no timeout
Browse files Browse the repository at this point in the history
So that waiter gets notified when oom happens.

Signed-off-by: bin liu <liubin0329@gmail.com>
  • Loading branch information
liubin authored and bergwolf committed Jul 3, 2020
1 parent e35646c commit 24ea3f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/virtcontainers/kata_agent.go
Expand Up @@ -2094,8 +2094,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 24ea3f0

Please sign in to comment.