#alexanderg - network retries

1 messages · Page 1 of 1 (latest)

sweet lynx
#

hey there, that's not offered by the clients. To achieve this you'd implement it yourself using idempotency keys and track the attempts/errors.

bronze sphinx
#

So this setting affects all Stripe API calls?

sweet lynx
#

For that instance of the client, yes

bronze sphinx
#

public static final int DEFAULT_CONNECT_TIMEOUT = 30 * 1000;
public static final int DEFAULT_READ_TIMEOUT = 80 * 1000;

sweet lynx
#

If effectively applies idempotency keys internally

bronze sphinx
#

The default is 80 seconds?

sweet lynx
#

From what you've quoted that appears to be the case. What are you trying to do?

bronze sphinx
#

Just looking to see if this needs to be adjusted in our case, 80 sec looks like a rather long call

#

Connect is to just establish connection to Stripe and read is for the full call execution on Stripe side?

sweet lynx
bronze sphinx
#

So default for read is 80 seconds.

#

Is there a way to set timeout for write calls? What is the default?

#

We set the number of retries (which I assume applies to the write calls as well), are the above timeouts above applicable to these retries?

sweet lynx
#

So hopefully that helps with your original question

bronze sphinx
#

Nice!

sweet lynx
#

Yes, the timeout would be per network request, not combined for all retries