Skip to content

Commit dfff4e4

Browse files
committed
Fix websocket notify leading to port exhaustion
related: aio-libs/aiohttp#10325
1 parent 8629471 commit dfff4e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/lonelypss/routes/notify.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ async def handle_trusted_notify(
288288
try:
289289
async with session.post(
290290
subscriber.url,
291-
data=guarded_request_body,
291+
# https://github.com/aio-libs/aiohttp/issues/10325
292+
data=None if content_length == 0 else guarded_request_body,
292293
headers=headers,
293294
) as resp:
294295
if resp.ok:

0 commit comments

Comments
 (0)