Post

Replies

Boosts

Views

Activity

Reply to Disable URLSession auto retry policy
Any updates on this? I've been experiencing something similar. Only noticed it after implementing a "nonce" logic that rejects calls passing a nonce that was after used recently. After some inspection I could see the duplicated requests are identical, and the time gap between them may vary from fraction of a second to 30s. I couldn't reproduce the issue myself, so I can 't confirm it is a URLSession behavior. Please correct me if I'm wrong byt from what I've informed myself the best strategy is not to try to avoid the retry request, but properly handle it on backend and possibly on the client – and also monitor spikes on the incidences caused by a single user.
Aug ’25