Add timeout in load shim v2
add timeout in connect shim v2 avoid starting containerd hang
@@ -100,6 +100,8 @@ func loadShim(ctx context.Context, bundle *Bundle, events *exchange.Exchange, rt
events: events,
rtTasks: rt,
}
+ ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
+ defer cancel()
if err := s.Connect(ctx); err != nil {
return nil, err
}
