Method: HTTPX::Channel#handle_timeout_error
- Defined in:
- lib/httpx/channel.rb
#handle_timeout_error(e) ⇒ Object
209 210 211 212 213 214 215 216 217 218 |
# File 'lib/httpx/channel.rb', line 209 def handle_timeout_error(e) return emit(:error, e) unless @timeout @timeout -= e.timeout return unless @timeout <= 0 if connecting? emit(:error, e.to_connection_error) else emit(:error, e) end end |