Skip to content

Commit 89bb816

Browse files
committed
Increase DescribeNetworkInterfaces timeout value
1 parent 6106a6d commit 89bb816

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/awsutils/awsutils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,9 +1740,9 @@ func (cache *EC2InstanceMetadataCache) DescribeAllENIs(ctx context.Context) (Des
17401740
input := &ec2.DescribeNetworkInterfacesInput{NetworkInterfaceIds: eniIDs}
17411741
start := time.Now()
17421742

1743-
reqCtx, cancel := context.WithTimeout(ctx, 5*time.Second)
1743+
reqCtx, cancel := context.WithTimeout(ctx, 10*time.Second)
1744+
defer cancel()
17441745
ec2Response, err = cache.ec2SVC.DescribeNetworkInterfaces(reqCtx, input)
1745-
cancel()
17461746
prometheusmetrics.Ec2ApiReq.WithLabelValues("DescribeNetworkInterfaces").Inc()
17471747
prometheusmetrics.AwsAPILatency.WithLabelValues("DescribeNetworkInterfaces", fmt.Sprint(err != nil), awsReqStatus(err)).Observe(msSince(start))
17481748
if err == nil {

0 commit comments

Comments
 (0)