Method: Anthropic::Internal::Transport::PooledNetRequester.calibrate_socket_timeout
- Defined in:
- lib/anthropic/internal/transport/pooled_net_requester.rb
.calibrate_socket_timeout(conn, deadline) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
43 44 45 46 |
# File 'lib/anthropic/internal/transport/pooled_net_requester.rb', line 43 def calibrate_socket_timeout(conn, deadline) timeout = deadline - Anthropic::Internal::Util.monotonic_secs conn.open_timeout = conn.read_timeout = conn.write_timeout = conn.continue_timeout = timeout end |