-
In the docs, it says:
but in the s3_client.c implementation, it seems that even if we didn't have to call My question is then if the usage is to always call |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
The idea behind an The flow should be like:
|
Beta Was this translation helpful? Give feedback.
-
Excellent clarification. Thanks @graebm. And I'm assuming the answer is yes, but |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
The idea behind an
aws_retry_token
, is that you should be holding one when you perform any HTTP request, even if it's your first try. Then you need to inform the system whether or not the token was used successfully (by callingaws_retry_token_record_success()
to indicate success, oraws_retry_strategy_schedule_retry()
to indicate failure). Finally, after you are 100% done with the token, you callaws_retry_token_release()
to decrement its ref-count and allow its memory to be cleaned up.The flow should be like:
aws_retry_strategy_acquire_retry_token()
: