Skip to content

Commit 536f481

Browse files
committed
fix(injectors): proxy timeout to http_client for cmd2 settable
1 parent 46035dd commit 536f481

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

wshell/injectors.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@ def execute(self, cmd: str, strip: bool = True) -> str:
7777
)
7878
return self._extract_output(response.text, placeholder, strip=strip)
7979

80+
@property
81+
def timeout(self) -> float | None:
82+
"""Expose the HTTP timeout as a cmd2 settable on the injector."""
83+
84+
return self.http_client.timeout
85+
86+
@timeout.setter
87+
def timeout(self, value: float | None) -> None:
88+
self.http_client.timeout = value
89+
8090
def detect_os(self) -> OSEnum:
8191
"""Try to identify the remote OS."""
8292

0 commit comments

Comments
 (0)