influxdb/influxdb-python — pull request #35 by salanki (2014-06-05 12:42:06+00:00)
Title: Added optional read timeout.

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.