question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request Timeout V Network Timeout

See original GitHub issue

I’m not sure if this is the best place to bring this up, but I’m having some issues being able to differentiate a network timeout from a request timeout.

Is there a way to set the connection timeout separate from the request timeout?

Basically I want to be able to set different thresholds for when a node is not responding at all (which would result in a ConnectTimeout to one in which the request is just taking too long to process ReadTimeout

ConnectTimeout: HTTPConnectionPool(host=<host>, port=9200): Max retries exceeded with url: /_bulk (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f44f2c8f510>, 'Connection to <node> timed out. (connect timeout=10)'))

v

ReadTimeout: HTTPConnectionPool(host=<host> port=9200): Read timed out. (read timeout=10)

I’d like to set connect_timeout = 1 and read_timeout = 20

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ydawantcommented, Mar 12, 2018

Great. Thanks for your time Nick! I’ll implement sniffing and go from there. You’ve been very helpful.

0reactions
ydawantcommented, Mar 12, 2018

I’m going to close the issue for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Requested Timeout on Server - Spiceworks Community
Hello, Spiceworks Community,. I have recently been experiencing these intermittent outages in our office. Our network is flat (192.168.
Read more >
Request Timed Out vs. Destination Host Unreachable
Learn about "Request Timed Out" and "Destination Host Unreachable" error messages and how to diagnose them.
Read more >
What Does a Server Connection Timeout Mean?
A server connection timeout means that a server is taking too long to reply to a data request made from another device. Timeouts...
Read more >
Why do I get Request Timed Out when trying to ping a ...
In most cases, a "Request Timed Out" message is caused by a firewall blocking the connectivity. Before you can ping, you'll need to...
Read more >
What is a connection timeout during a http request
Request timeout unlike connection timeouts in which a client is not willing to wait for response from server for too long. Server as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found