mod_upload_progress does not handle connection reset
mod_upload_progress does not handle connection reset (for example, when client closes browser window). After connection reset mod_upload_progress GET progress-url could output random progress on reset connection. This happens because after connection reset
could point do different connection.
Attaching two patches, to reproduce problem and to fix.
To reproduce problem:¶
1. apply repr.diff
2. start lighttpd with config testing/l.conf
3. run testing/get.py script
4. open http://server:10103/up.html in browser, and submit large file
5. interrupt uploading by closing browser window
Lighttpd will exit(1), because GET /process finds current connection in connection map, that must not occur.
Also available in: Atom