Elezabeth Mathew
Elezabeth Mathew

Reputation: 161

Amazon s3 upload using transfer manager waiting for long time if there is no network

I am uploading videos to amazon s3 using Transfer manager. After calling the upload method which is asynchronous i am calling waitForUploadResult().

If the network is not available the flow is blocked until the network is restored. Even exceptions are not thrown if there is no network for a long time.

I need to get notified if network is not available for more than 5 minutes.

Upvotes: 0

Views: 1401

Answers (1)

Yangfan
Yangfan

Reputation: 1876

TransferManager is backed by an AmazonS3Client. You can configure the timeout of a S3 client by passing a customized ClientConfiguration object to the client. I hope this will help.

Upvotes: 1

Related Questions