[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:
parent
52b110ae96
commit
84a4896ffc
@ -270,6 +270,7 @@ public class HubIOStream extends IOStream implements Runnable {
|
|||||||
HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
|
HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
|
||||||
try {
|
try {
|
||||||
connection.setConnectTimeout(30000);
|
connection.setConnectTimeout(30000);
|
||||||
|
connection.setReadTimeout(10000);
|
||||||
connection.setUseCaches(false);
|
connection.setUseCaches(false);
|
||||||
connection.setDoInput(true);
|
connection.setDoInput(true);
|
||||||
connection.setDoOutput(false);
|
connection.setDoOutput(false);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user