diff --git a/CHANGELOG.md b/CHANGELOG.md index 71c9877b9..adb96872e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ ### Improvements ### Bugfix +* fixes a bug in the `http_output` used by the http generator, where the timeout parameter does only set the read_timeout not the write_timeout + ## 13.1.0 ### Features diff --git a/logprep/connector/http/output.py b/logprep/connector/http/output.py index 7c3d393c2..4ba65a8cf 100644 --- a/logprep/connector/http/output.py +++ b/logprep/connector/http/output.py @@ -188,7 +188,7 @@ def store_custom(self, document: dict | tuple | list, target: str) -> None: headers=self._headers, verify=False, auth=(self.user, self.password), - timeout=self.timeout, + timeout=(self.timeout, self.timeout), data=request_data, ) logger.debug("Servers response code is: %i", response.status_code)