summaryrefslogtreecommitdiff
path: root/tests/test_task.py
Commit message (Collapse)AuthorAgeFilesLines
* Always encode the responses to utf-8 and set Content-TypeBert JW Regeer2022-04-211-4/+4
|
* Add REMOTE_URI to the WSGI environ.Shane Hathaway2021-05-111-0/+2
| | | | CHANGES.txt entry included.
* Allow tasks to notice if client disconnectedViktor Dick2020-10-251-0/+5
| | | | | | | | | | | | | This inserts a callable `waitress.client_disconnected` into the environment that allows the task to check if the client disconnected while waiting for the response at strategic points in the execution, allowing to cancel the operation. It requires setting the new adjustment `channel_request_lookahead` to a value larger than 0, which continues to read requests from a channel even if a request is already being processed on that channel, up to the given count, since a client disconnect is detected by reading from a readable socket and receiving an empty result.
* Black formatting updateBert JW Regeer2020-09-071-1/+4
|
* Add isort to the projectBert JW Regeer2020-08-151-1/+1
|
* Bare super()Bert JW Regeer2020-08-151-1/+1
|
* socket.error/IOError -> OSErrorBert JW Regeer2020-08-151-1/+1
|
* Remove object from class definitionBert JW Regeer2020-08-151-6/+6
|
* Update thread name to contain thread numberBert JW Regeer2020-05-271-2/+2
| | | | This way loggers that use the thread name display useful information
* Move tests to top directoryBert JW Regeer2020-04-161-0/+1001