mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 04:34:27 +00:00
virtcontainers: GetOOMEvent should have no timeout
So that waiter gets notified when oom happens. Signed-off-by: bin liu <liubin0329@gmail.com>
This commit is contained in:
parent
e35646cd38
commit
24ea3f0127
@ -2094,8 +2094,8 @@ func (k *kataAgent) installReqFunc(c *kataclient.AgentClient) {
|
|||||||
func (k *kataAgent) getReqContext(reqName string) (ctx context.Context, cancel context.CancelFunc) {
|
func (k *kataAgent) getReqContext(reqName string) (ctx context.Context, cancel context.CancelFunc) {
|
||||||
ctx = context.Background()
|
ctx = context.Background()
|
||||||
switch reqName {
|
switch reqName {
|
||||||
case grpcWaitProcessRequest:
|
case grpcWaitProcessRequest, grpcGetOOMEventRequest:
|
||||||
// Wait has no timeout
|
// Wait and GetOOMEvent have no timeout
|
||||||
case grpcCheckRequest:
|
case grpcCheckRequest:
|
||||||
ctx, cancel = context.WithTimeout(ctx, checkRequestTimeout)
|
ctx, cancel = context.WithTimeout(ctx, checkRequestTimeout)
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user