bbc / nmos-query

AMWA NMOS IS-04 Query API Service
Apache License 2.0
3 stars 2 forks source link

Handle request ReadTimeouts in etcd_watch #22

Closed cnorthwood closed 5 years ago

cnorthwood commented 5 years ago

Often logs are filled with lines like:

2019-01-04 10:49:09,756 WARN  python.regquery.regquery.etcd_watch Could not contact etcd: HTTPConnectionPool(host='localhost', port=4001): Read timed out.

As far as I can tell, requests throws a ReadTimeout exception rather than a socket.timeout exception, so this handles that case as intended.