aws-amplify / aws-sdk-android

AWS SDK for Android. For more information, see our web site:
https://docs.amplify.aws
Other
1.02k stars 548 forks source link

ClientConfiguration: How do I set "RequestTimeout" #1200

Open roylee0704 opened 4 years ago

roylee0704 commented 4 years ago

State your question

How do I configure "RequestTimeout" via new ClientConfiguration()?

I was to set it via new ClientConfiguration().withRequestTimeout() in aws/aws-sdk-java. However, that function is missing under aws-amplify/aws-sdk-android.

Which AWS Services are you utilizing?

I'm utilising AWS-SQS with maximum long-polling: 20s. Apparently, I received an Exception Unable to execute HTTP request: timeout prior 20s. It timeout-ed around 15s.

Environment(please complete the following information):

Device Information (please complete the following information):

mutablealligator commented 4 years ago

@roylee0704 Thank you for reporting to us. We do not support requestTimeout at this moment. By requestTimeout do you mean The amount of time to wait (in milliseconds) for a request to complete before giving up and timing out.? If so, we will take this as a feature request add it to our backlog for prioritization.

roylee0704 commented 4 years ago

By requestTimeout do you mean The amount of time to wait (in milliseconds) for a request to complete before giving up and timing out.?

@kvasukib Yes, precisely :)

Alright noted, thanks for the prompt reply!