Mangopay / mangopay2-ruby-sdk

Ruby Gem for MANGOPAY
https://rubygems.org/gems/mangopay
MIT License
42 stars 38 forks source link

Allow setting max_retries #216

Closed laurynas closed 1 year ago

laurynas commented 1 year ago

Ruby Net::HTTP by default retries idempotent requests once: https://ruby-doc.org/stdlib-3.1.0/libdoc/net/http/rdoc/Net/HTTP.html#method-i-max_retries-3D

Currently there is no way to disable the retries. It would be great to be able to control Net::HTTP options. Or just set it to 0.

Related: https://github.com/Mangopay/mangopay2-ruby-sdk/issues/215