summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Avoid doing work for UNIX sockets, just return localhostbugfix/ipv6_server_nameBert JW Regeer2018-09-051-0/+3
|
* Change get_server_name logic to be more correctBert JW Regeer2018-09-052-4/+32
| | | | | | | | | | | | | | | | | | | | | In case of wildcard INADDR_ANY or INADDR6_ANY, we try and get the hostname of the machine we are running on, since it is arguably the most correct response for a daemon listening on all addresses. However if that fails, we fall back to returning `localhost`. If we have an IP address other than the wildcard, we try to get the hostname by doing a reverse DNS lookup, if this fails we just set the server_name to the IP address directly. For IPv6, we MUST wrap the IP address in `[]` so that it is a valid IPv6 literal address. We also catch the UnicodeDecodeError exception and make sure to ignore it, this is due to Windows and gethostbyaddr doing the wrong thing internally. Closes #186, #201, #168
* get_server_name requires an IP, passing empty is invalidBert JW Regeer2018-09-052-11/+6
|
* Remove pypy3 from travisBert JW Regeer2018-09-051-2/+0
|
* Was a bit too aggressive with updating toxBert JW Regeer2018-09-051-1/+1
|
* Update waitress testing to include Python 3.7/3.8Bert JW Regeer2018-09-053-8/+15
|
* Update CHANGES.txt for #202Bert JW Regeer2018-09-051-6/+9
|
* Merge pull request #202 from Pylons/body-less-304Bert JW Regeer2018-09-053-16/+110
|\ | | | | Ignore response body if status code doesn't allow a body
| * Rewrite removal of item from response_headersBert JW Regeer2018-09-052-8/+25
| | | | | | | | We don't want to delete items from a list while iterating over the list.
| * Ignore body for status codes that don't have a bodybody-less-304Bert JW Regeer2018-08-311-3/+26
| | | | | | | | | | | | | | | | For responses that should not include a message body, we now explicitly ignore the body from the application and no longer send it on to the requesting client. We also log a warning to let developers/users know.
| * Make sure wasyncore tests don't fail on MacOSBert JW Regeer2018-08-311-3/+4
| |
| * Test that sending message body on HTTP code 204/304Bert JW Regeer2018-08-311-0/+28
| | | | | | | | This shouldn't be allowed.
| * Add test for 304 Not ModifiedBert JW Regeer2018-08-311-0/+17
| |
| * Add new has_body propertyBert JW Regeer2018-08-311-3/+11
| | | | | | | | | | This is used to test if a response should have a message body or not. 1xx, 204 and 304 should not have message bodies.
* | Merge pull request #203 from Pylons/set-input-terminatedBert JW Regeer2018-09-042-4/+7
|\ \ | |/ |/| Set wsgi.input_terminated in the WSGI environ
| * Fix tests that verify WSGI environmentset-input-terminatedBert JW Regeer2018-08-311-4/+6
| |
| * Set wsgi.input_terminated in the WSGI environBert JW Regeer2018-08-311-0/+1
|/ | | | | | This is a no-op because Waitress already buffers the entire request if it is chunked and will correctly set the CONTENT_LENGTH, but it may allow optimizations in certain WSGI applications/libraries.
* Add CHANGES.txt entry for #166Bert JW Regeer2018-08-311-1/+9
|
* Merge pull request #166 from alexanderlukanin13/http_204Bert JW Regeer2018-08-312-2/+40
|\ | | | | MUST NOT send Transfer-Encoding or Content-Length for 1xx or 204
| * Test for HTTP 100 without Content-LengthAlexander Lukanin2017-08-171-0/+17
| |
| * MUST NOT send Transfer-Encoding or Content-Length for 1xx or 204Alexander Lukanin2017-06-062-2/+23
| |
* | Vendor asyncore into waitress as waitress.wasyncore. (#199)Chris McDonough2018-08-3111-77/+2437
| | | | | | | | | | Waitress has now "vendored" asyncore into itself as ``waitress.wasyncore``. This is to cope with the eventuality that asyncore will be removed from the Python standard library in 3.8 or so.
* | Merge pull request #187 from NotBobTheBuilder/suppress-empty-server-headerBert JW Regeer2018-08-286-3/+32
|\ \ | | | | | | Support configurably omitting server header
| * | No empty Via on proxied requestsJack Wearden2018-05-213-3/+3
| | |
| * | Fix test case typoJack Wearden2018-05-211-1/+1
| | |
| * | Add more cases of removed server header & testsJack Wearden2018-05-215-15/+28
| | |
| * | Signing contributors fileJack Wearden2018-05-181-0/+2
| | |
| * | ident=None test caseJack Wearden2018-05-181-0/+7
| | |
| * | Support configurably omitting server headerJack Wearden2018-05-172-5/+12
| | |
* | | Fix name (#196)Steve Piercy2018-06-011-1/+1
| | |
* | | Merge pull request #193 from stevepiercy/docs-meta-infoBert JW Regeer2018-05-202-3/+120
|\ \ \ | | | | | | | | Update meta data
| * | | Remove branch mentionsSteve Piercy2018-05-201-17/+3
| | | |
| * | | Delete HACKING.txtSteve Piercy2018-05-201-218/+0
| | | | | | | | | | | | | | | | - because it duplicates contributing.md and its links to pylonsproject.org
| * | | Add RELEASING.txtSteve Piercy2018-05-191-0/+129
| | | | | | | | | | | | | | | | - copied from Pyramid and modified.
| * | | Add HACKING.txtSteve Piercy2018-05-191-0/+218
| | | | | | | | | | | | | | | | - copied from Pyramid and modified.
| * | | Add date for copyrightSteve Piercy2018-05-191-3/+5
| | | | | | | | | | | | | | | | | | | | - fix GitHub URL - use correct name of organization
* | | | Merge pull request #192 from stevepiercy/masterBert JW Regeer2018-05-204-8/+27
|\ \ \ \ | |/ / / | | | | Remove py33, add py37 allowed failure, for tox and Travis
| * | | Remove py33 trove classifier, add WSGISteve Piercy2018-05-191-1/+1
| | | |
| * | | Update readme to align with tox, travis. Add badges.Steve Piercy2018-05-191-3/+21
| | | |
| * | | attempt to allow failures for second toxenvSteve Piercy2018-05-191-1/+2
| | | | | | | | | | | | | | | | | | | | - The docs are not helpful, so I'm making a guess https://docs.travis-ci.com/user/customizing-the-build/#Rows-that-are-Allowed-to-Fail
| * | | Remove py33, add py37 allowed failure, for tox and TravisSteve Piercy2018-05-192-5/+5
| |/ /
* | | Add contributing.md (#191)Steve Piercy2018-05-192-3/+98
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | * first cut at contributing.md * second cut at contributing.md - Give clearer purpose to contributing instead of a replacement for HACKING.txt - Add Get Support section - Rewrite section now named Working on issues - Rewrite Running Tests section - Rename Building documentation for a Pylons Project project to Contributing documentation * Fix typos. * Update links; unwrap lines
* | Merge pull request #178 from j4mie/log-queue-depthBert JW Regeer2017-11-153-0/+17
|\ \ | | | | | | Log warning when queue depth is greater than 0
| * | Use separate named logger for queue depthJamie Matthews2017-11-153-4/+7
| | |
| * | Correct test for queue depth logJamie Matthews2017-11-091-1/+3
| | |
| * | Add test for task queue depth loggerJamie Matthews2017-11-091-0/+7
| | |
| * | Log warning when queue depth is greater than 0Jamie Matthews2017-11-091-0/+5
|/ /
* | Prep for 1.1.0v1.1.0Bert JW Regeer2017-10-102-1/+20
| |
* | Merge pull request #170 from Pylons/bugfix/uppercase_verbBert JW Regeer2017-08-162-5/+21
|\ \ | | | | | | No longer allow lowercase HTTP methods
| * | No longer allow lowercase HTTP methodsbugfix/uppercase_verbBert JW Regeer2017-08-152-5/+21
| |/