Skip to content

Commit

Permalink
[insteon] add a read timeout when getting data from Insteon 2245-222 …
Browse files Browse the repository at this point in the history
…hub (openhab#10708)

Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
  • Loading branch information
robnielsen authored and computergeek1507 committed Jul 13, 2021
1 parent 823691e commit 28d47b9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ private String getURL(String resource) throws IOException {
HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
try {
connection.setConnectTimeout(30000);
connection.setReadTimeout(10000);
connection.setUseCaches(false);
connection.setDoInput(true);
connection.setDoOutput(false);
Expand Down

0 comments on commit 28d47b9

Please sign in to comment.