Skip to content

Commit

Permalink
Fix http output timeout (#651)
Browse files Browse the repository at this point in the history
* fix http output timeout
  • Loading branch information
ekneg54 authored Aug 21, 2024
1 parent 1b7cb39 commit 27dc305
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion logprep/connector/http/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 27dc305

Please sign in to comment.