Changes between Initial Version and Version 1 of Ticket #29800, comment 17


Ignore:
Timestamp:
Mar 23, 2026, 4:59:30 AM (3 weeks ago)
Author:
Lakshya Prasad

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29800, comment 17

    initial v1  
    1 After investigating, it seems the hang occurs because Django relies on the WSGI input stream (e.g., wsgiref or gunicorn), which blocks until the declared Content-Length is fully read.
    2 
    3 Since the WSGI spec does not define behavior for Content-Length larger than actual payload, and production setups typically rely on reverse proxies (e.g., nginx) to validate requests, this might not be appropriate to fix at Django level.
    4 
    5 I’d like to propose adding documentation explaining this behavior and recommending use of a reverse proxy or proper request validation.
Back to Top