Network timeout settings

Ruby has 60s timeouts by default. Both Net::HTTP and Excon have this.

  • connect timeout — how long to establish connection to a remote
  • write timeout — how long to send request
  • read timeout — how long to receive response

Best actionable info on this topic: https://github.com/ankane/the-ultimate-guide-to-ruby-timeouts

🤔 Does server complete a task if aborted on write or read?


References



Date
March 28, 2024