End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Net::HTTP#read_timeout=
read_timeout=(sec)
lib/net/http.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/net/http.rb, line 794
def read_timeout=(sec)
@socket.read_timeout = sec if @socket
@read_timeout = sec
end
Setter for the read_timeout attribute.