[insteon] add a read timeout when getting data from Insteon 2245-222 hub (#10708)

Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
This commit is contained in:
robnielsen 2021-05-17 15:12:02 -05:00 committed by GitHub
parent 52b110ae96
commit 84a4896ffc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -270,6 +270,7 @@ public class HubIOStream extends IOStream implements Runnable {
HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
try {
connection.setConnectTimeout(30000);
connection.setReadTimeout(10000);
connection.setUseCaches(false);
connection.setDoInput(true);
connection.setDoOutput(false);