From: robnielsen Date: Mon, 17 May 2021 20:12:02 +0000 (-0500) Subject: [insteon] add a read timeout when getting data from Insteon 2245-222 hub (#10708) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=84a4896ffcffd5b6e8cc1da173bd3b582ad41cd6;p=openhab-addons.git [insteon] add a read timeout when getting data from Insteon 2245-222 hub (#10708) Signed-off-by: Rob Nielsen --- 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);