Closed jjlawren closed 4 years ago
A timeout parameter should always be used with requests calls as an unresponsive server can hang the request indefinitely: https://requests.readthedocs.io/en/master/user/quickstart/#timeouts. This adds a default timeout of 5s to all requests.
timeout
requests
Also removes a seemingly redundant requests.get() call in sonos_user_data.py.
requests.get()
sonos_user_data.py
A
timeout
parameter should always be used withrequests
calls as an unresponsive server can hang the request indefinitely: https://requests.readthedocs.io/en/master/user/quickstart/#timeouts. This adds a default timeout of 5s to all requests.Also removes a seemingly redundant
requests.get()
call insonos_user_data.py
.