• Ralf Schmitt's avatar
    pywsgi: fix multiple issues with chunked encoding. · 20f2b249
    Ralf Schmitt authored
    - short writes could force the server into a busy loop (i.e. basically a DOS attack)
    - fix handling of trailing crlf when reading input with a length parameter
    - fix handling of wsgi apps not consuming the whole input.
    - make readline work with chunked input
    - respect size parameter to readline method even if this isn't strictly required by the WSGI spec.
    
    --HG--
    extra : transplant_source : W%F8%B8y%C5_%83%C2%8B%1C%A6Ntn%8Bj%3F%29%86%04
    20f2b249
pywsgi.py 18.1 KB