Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Added optional read timeout. #35

Merged
merged 1 commit into from
Jun 6, 2014
Merged

Conversation

salanki
Copy link
Contributor

@salanki salanki commented Jun 5, 2014

Defaults to no timeout.

From requests documentation "timeout is not a time limit on the entire response download; rather, an exception is raised if the server has not issued a response for timeout seconds (more precisely, if no bytes have been received on the underlying socket for timeout seconds)."

I have seen cases where a write_points would stall and never return, locking up my client script until it is detected and restarted. This timeout should hopefully allow this to be quicker detected and also help determine the root cause (why the connection is stalling to InfluxDB running on localhost). I am sure a timeout is useful to other people than me using the library, hence the PR.

From requests documentation "timeout is not a time limit on the entire response download; rather, an exception is raised if the server has not issued a response for timeout seconds (more precisely, if no bytes have been received on the underlying socket for timeout seconds)."
@toddboom
Copy link
Contributor

toddboom commented Jun 6, 2014

@salanki Looks great, thanks!

toddboom added a commit that referenced this pull request Jun 6, 2014
Added optional read timeout.
@toddboom toddboom merged commit e85950a into influxdata:master Jun 6, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy