From 84a4896ffcffd5b6e8cc1da173bd3b582ad41cd6 Mon Sep 17 00:00:00 2001 From: robnielsen Date: Mon, 17 May 2021 15:12:02 -0500 Subject: [PATCH] [insteon] add a read timeout when getting data from Insteon 2245-222 hub (#10708) Signed-off-by: Rob Nielsen --- .../openhab/binding/insteon/internal/driver/hub/HubIOStream.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/driver/hub/HubIOStream.java b/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/driver/hub/HubIOStream.java index fcbc60cccc..052a4102f0 100644 --- a/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/driver/hub/HubIOStream.java +++ b/bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/driver/hub/HubIOStream.java @@ -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); -- 2.47.3