Message298874
I share RDM's sentiment and I'm not keen to add more complexity.
The http.server module in Python's stdlib is a useful example implementation of a simple HTTP server. I'd rather keep it simple and see a full featured HTTP server on PyPI. These days we don't have to include all batteries in Python's standard library. PyPI and pip made it super easy to install additional packages.
I might be convinced to add transparent gzip compression if it is done properly. A temporary file, compress-than-send, and whole content handling (content-length) are all wrong. Your current implementation will result in at least one CVE and a bunch of mails to Python security mailing list. Transparent compression must use chunked encoding with a small in-memory buffer instead of a file and zlib.compressobj() instead of gzip.GzipFile. |
|
Date |
User |
Action |
Args |
2017-07-22 21:36:11 | christian.heimes | set | recipients:
+ christian.heimes, terry.reedy, vstinner, v+python, r.david.murray, quentel, martin.panter |
2017-07-22 21:36:11 | christian.heimes | set | messageid: <1500759371.03.0.619142974771.issue30576@psf.upfronthosting.co.za> |
2017-07-22 21:36:10 | christian.heimes | link | issue30576 messages |
2017-07-22 21:36:10 | christian.heimes | create | |
|