Skip to content

Commit 2fce523

Browse files
authored
Close old HTTP client on registry reconnect
Fixes a connection leak in RegistryTEEConnection.reconnect() by closing the old HTTP client before establishing a new connection, preventing resource leaks in long-running processes. Signed-off-by: AMATH <116212274+amathxbt@users.noreply.github.com>
1 parent 516f877 commit 2fce523

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Summary
2+
3+
Fixes a connection leak in `RegistryTEEConnection.reconnect()`.
4+
5+
The reconnect path was creating a new active TEE connection without closing the old HTTP client. In long-running processes that refresh or fail over repeatedly, this can leave stale clients open and slowly leak resources.
6+
7+
Fixes #247
8+
9+
## Problem
10+
11+
`RegistryTEEConnection.reconnect()` previously did this:
12+
13+
```python
14+
self._active = self._connect()

0 commit comments

Comments
 (0)