Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ddtrace/appsec/_handlers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import asyncio
import io
import json
from typing import Any
Expand Down Expand Up @@ -171,6 +170,9 @@ def _on_lambda_parse_body(

async def _on_asgi_request_parse_body(receive, headers):
if asm_config._asm_enabled:
# This must not be imported globally due to 3rd party patching timeline
import asyncio

more_body = True
body_parts = []
try:
Expand Down
4 changes: 4 additions & 0 deletions releasenotes/notes/asyncio_fix-d279a20c05a2bf24.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
fixes:
- |
AAP: This fix resolves an issue where stream endpoints with daphne/django where unresponsive due to an asyncio error.
Loading