This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes, martin.panter, quentel, r.david.murray, terry.reedy, v+python, vstinner
Date 2017-07-22.21:36:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500759371.03.0.619142974771.issue30576@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-07-22 21:36:11christian.heimessetrecipients: + christian.heimes, terry.reedy, vstinner, v+python, r.david.murray, quentel, martin.panter
2017-07-22 21:36:11christian.heimessetmessageid: <1500759371.03.0.619142974771.issue30576@psf.upfronthosting.co.za>
2017-07-22 21:36:10christian.heimeslinkissue30576 messages
2017-07-22 21:36:10christian.heimescreate