Skip to content

Commit e90e247

Browse files
committed
Specific read timeout as this is the use case.
1 parent fa990a2 commit e90e247

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/adminui/hostbridge.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
# increasing httpx default (5s) as processing on host can be slow on older devices
1010
DEFAULT_TIMEOUT = Timeout(timeout=20.0)
11-
LONG_TIMETOUT = Timeout(timeout=60.0)
1211

1312

1413
@dataclass
@@ -90,7 +89,8 @@ def request_service_toggle(self, name: str, enable: bool) -> BridgeResponse:
9089
"""enable (not start) systemd service"""
9190
action = "enable" if enable else "disable"
9291
return self.do_request(
93-
path=f"/toggle-service/{action}/{name}", timeout=LONG_TIMETOUT
92+
path=f"/toggle-service/{action}/{name}",
93+
timeout=Timeout(timeout=20.0, read=60.0),
9494
)
9595

9696
def request_service_enabled(self, name: str) -> BridgeResponse:

0 commit comments

Comments
 (0)