Skip to content

Commit 5610904

Browse files
committed
asyncio: Fix memory leak caused by hiredis (#2693)
1 parent e1017fd commit 5610904

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
* asyncio: Fix memory leak caused by hiredis (#2693)
12
* Allow data to drain from async PythonParser when reading during a disconnect()
23
* Use asyncio.timeout() instead of async_timeout.timeout() for python >= 3.11 (#2602)
34
* Add test and fix async HiredisParser when reading during a disconnect() (#2349)

redis/asyncio/connection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ def on_connect(self, connection: "Connection"):
378378

379379
def on_disconnect(self):
380380
self._connected = False
381+
self._reader = None
381382

382383
async def can_read_destructive(self):
383384
if not self._connected:

0 commit comments

Comments
 (0)