• Kirill Smelkov's avatar
    Don't allow Net::HTTP to hang forever · deaa6b97
    Kirill Smelkov authored
    Net::HTTP has default infinite timeout for opening connection, which,
    when other side does not open connection fully, nor rejects connecting,
    results in infinite thread hang without any reporting into log.
    
    Fix it by explicitly making all timeouts finite (set to default
    Net::HTTP's read_timeout 60 seconds).
    
    /cc @klaus
    deaa6b97
wendelin_client.rb 3.74 KB