'rescue in rbuf_fill': Timeout::Error (Timeout::Error)

前端 未结 1 1398
无人及你
无人及你 2020-12-03 15:22

Same script different error. This might be related more to my network instead of my code. The script is as follows:

#!/usr/bin/env ruby -rubygems

require Fi         


        
相关标签:
1条回答
  • 2020-12-03 15:51

    Found this while perusing the web. Hopes it helps somebody! Setting a longer timeout

    Here is how you can adjust the timeout in the Net::HTTP API:

    require 'net/http' 
    
    http = Net::HTTP.new(@host, @port)
    http.read_timeout = 500
    
    0 讨论(0)
提交回复
热议问题