]> git.basschouten.com Git - openhab-addons.git/commitdiff
[insteon] add a read timeout when getting data from Insteon 2245-222 hub (#10708)
authorrobnielsen <rob.nielsen@yahoo.com>
Mon, 17 May 2021 20:12:02 +0000 (15:12 -0500)
committerGitHub <noreply@github.com>
Mon, 17 May 2021 20:12:02 +0000 (22:12 +0200)
Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/driver/hub/HubIOStream.java

index fcbc60cccc0ba4c009d5e5ef2ca9381ba56448b9..052a4102f0c44decb5f55e9f83d5c7350a572213 100644 (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);