We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c818e9 commit 1e7597bCopy full SHA for 1e7597b
2 files changed
CHANGELOG.md
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
7
+## Unreleased
8
+
9
+- Fix `float("inf")` timeouts in `Event.wait` function. (#846)
10
11
## 1.0.1 (November 3rd, 2023)
12
13
- Fix pool timeout to account for the total time spent retrying. (#823)
httpcore/_synchronization.py
@@ -226,6 +226,8 @@ def set(self) -> None:
226
self._event.set()
227
228
def wait(self, timeout: Optional[float] = None) -> None:
229
+ if timeout == float("inf"): # pragma: no cover
230
+ timeout = None
231
if not self._event.wait(timeout=timeout):
232
raise PoolTimeout() # pragma: nocover
233
0 commit comments