Don't allow Net::HTTP to hang forever
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
Showing
Please register or sign in to comment