summaryrefslogtreecommitdiff
path: root/paste/httpserver.py
Commit message (Collapse)AuthorAgeFilesLines
* Replace deprecated threading aliases (#69)Hugo van Kemenade2022-06-221-3/+3
|
* add ipv6 support by setting address family (#50)Lekinho2020-02-121-1/+27
| | | * add ipv6 support by setting address family
* Fix deprecation warnings (#41)Xtreak2020-01-051-3/+3
| | | | | | | | * Use is_alive instead of isAlive for Python 3.9 compatibility. * Use encodebytes instead of deprecated encodestring. * Fix Python 2 and 3 compatibility for base64.
* socket write expect bytes instead of str (#38)blidce2019-11-251-1/+1
|
* Avoid some reference cycles through tracebacks. (#36)Benjamin Peterson2019-10-141-5/+3
|
* LimitedLengthFile: Handle io.UnsupportedOperation from socket.tell(). (#35)Benjamin Peterson2019-09-091-3/+6
| | | On Python 3, socket.makefile() returns an object with a tell() method, but one that always raises io.UnsupportedOperation.
* Make LimitedLengthFile file return empty bytes rather than empty string when ↵Benjamin Peterson2019-09-041-1/+1
| | | | it's done. (#32)
* Write bytestrings when calling wsgi_write_chunk (#22)Chris Dent2019-02-281-2/+2
| | | | | | | | httpservers writes an empty string or an internal server error message, these needs to be bytes in python 3. It might have been useful to have wsgi_write_chunk accept either bytes or strings and do the right thing, but that seemed too invasive to be safe.
* Revert "Remove use of OpenSSL.tsafe, which links to OpenSSL.SSL anyways. (#16)"Chris Dent2019-01-071-3/+3
| | | | | | | | | | | | | | | | | This reverts commit 78dd2ec0138467305f1686558fca4ff8ca0b2b70. That removes the use of the so-called "thread safe" tsafe module, which adds a lock around many messages, but did not account for the use of that lock in the paste/httpserver.py module. An attempt was made to just get rid of that lock, but since there is limited testing of that area, and few resources to confirm the change, it's been decided that keeping tsafe and allow the deprecation warning to be exposed is the best thing to do. With luck the decpration warning will encourage people to not use the httpserver and choose something else instead. Fixes #19
* Remove use of OpenSSL.tsafe, which links to OpenSSL.SSL anyways. (#16)Stephan Richter2018-11-291-3/+3
|
* Don't delete dict item while iterating over same dict (#14)3.0.4Marius van den Beek2018-11-051-1/+1
|
* Make iterators Python3-compatibleZane Bitter2018-10-231-0/+1
| | | | | | | | In Python3, the iterator protocol uses a method named __next__(), not next(). (For compatibility with Python 2.6, we still need to support both though.) Ensure all iterator objects support the Python3 protocol. Signed-off-by: Zane Bitter <zbitter@redhat.com>
* Fix error on httpserver shutdownJames E. Blair2017-06-061-0/+1434
If a worker thread takes longer than 0.5s to shut down, we try to kill it. However, if it manages to stop between the 0.5s timeout and the call to kill_worker, kill_worker will raise an exception and abort shutdown. Handle that case with an exception handler.