Skip to content
This repository has been archived by the owner on Nov 27, 2020. It is now read-only.

Commit

Permalink
Change http timeout to 3 seconds.
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Skinner <[email protected]>
  • Loading branch information
Skinah committed Oct 3, 2020
1 parent 5e7ae2d commit 9b1b1d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public WLedHandler(Thing thing, HttpClient httpClient,

void sendGetRequest(String url) {
Request request = httpClient.newRequest(config.address + url);
request.timeout(10, TimeUnit.SECONDS);
request.timeout(3, TimeUnit.SECONDS);
request.method(HttpMethod.GET);
request.header(HttpHeader.ACCEPT_ENCODING, "gzip");

Expand Down
4 changes: 2 additions & 2 deletions target/classes/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Manifest-Version: 1.0
Automatic-Module-Name: org.openhab.binding.wled
Bnd-LastModified: 1601630011049
Bnd-LastModified: 1601698096473
Bundle-Description: This project contains the official add-ons of open
HAB
Bundle-Developers: openhab;email="[email protected]";name=openHAB;organ
Expand All @@ -20,7 +20,7 @@ Bundle-SCM: url="https://github.com/openhab/openhab-addons/org.openhab
tor.bundles/org.openhab.binding.wled",tag=HEAD
Bundle-SymbolicName: org.openhab.binding.wled
Bundle-Vendor: openHAB.org
Bundle-Version: 2.5.9.202010020913
Bundle-Version: 2.5.9.202010030408
Created-By: 1.8.0_231 (Oracle Corporation)
Import-Package: org.openhab.core.automation.annotation;resolution:=opt
ional,org.eclipse.smarthome.config.discovery,org.eclipse.smarthome.co
Expand Down

0 comments on commit 9b1b1d2

Please sign in to comment.