Benoit Chesneau 385a9211e2
Fix uwsgi incomplete header error with async workers (#3554)
The _read_exact method was calling unreader.read() without a size
parameter, which only reads one chunk at a time. With gevent/gthread
workers, this could return incomplete data before the full header
arrived.

Use unreader.read(size) which has proper retry logic built-in to
read the exact number of bytes requested.

Fixes #3552
2026-03-24 23:17:51 +01:00
..