mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-01 08:56:32 +00:00
Merge pull request #381 from bergwolf/oom
virtcontainers: GetOOMEvent should have no timeout
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user