Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Avoid doing work for UNIX sockets, just return localhostbugfix/ipv6_server_name | Bert JW Regeer | 2018-09-05 | 1 | -0/+3 |
| | |||||
* | Change get_server_name logic to be more correct | Bert JW Regeer | 2018-09-05 | 2 | -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 invalid | Bert JW Regeer | 2018-09-05 | 2 | -11/+6 |
| | |||||
* | Remove pypy3 from travis | Bert JW Regeer | 2018-09-05 | 1 | -2/+0 |
| | |||||
* | Was a bit too aggressive with updating tox | Bert JW Regeer | 2018-09-05 | 1 | -1/+1 |
| | |||||
* | Update waitress testing to include Python 3.7/3.8 | Bert JW Regeer | 2018-09-05 | 3 | -8/+15 |
| | |||||
* | Update CHANGES.txt for #202 | Bert JW Regeer | 2018-09-05 | 1 | -6/+9 |
| | |||||
* | Merge pull request #202 from Pylons/body-less-304 | Bert JW Regeer | 2018-09-05 | 3 | -16/+110 |
|\ | | | | | Ignore response body if status code doesn't allow a body | ||||
| * | Rewrite removal of item from response_headers | Bert JW Regeer | 2018-09-05 | 2 | -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-304 | Bert JW Regeer | 2018-08-31 | 1 | -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 MacOS | Bert JW Regeer | 2018-08-31 | 1 | -3/+4 |
| | | |||||
| * | Test that sending message body on HTTP code 204/304 | Bert JW Regeer | 2018-08-31 | 1 | -0/+28 |
| | | | | | | | | This shouldn't be allowed. | ||||
| * | Add test for 304 Not Modified | Bert JW Regeer | 2018-08-31 | 1 | -0/+17 |
| | | |||||
| * | Add new has_body property | Bert JW Regeer | 2018-08-31 | 1 | -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-terminated | Bert JW Regeer | 2018-09-04 | 2 | -4/+7 |
|\ \ | |/ |/| | Set wsgi.input_terminated in the WSGI environ | ||||
| * | Fix tests that verify WSGI environmentset-input-terminated | Bert JW Regeer | 2018-08-31 | 1 | -4/+6 |
| | | |||||
| * | Set wsgi.input_terminated in the WSGI environ | Bert JW Regeer | 2018-08-31 | 1 | -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 #166 | Bert JW Regeer | 2018-08-31 | 1 | -1/+9 |
| | |||||
* | Merge pull request #166 from alexanderlukanin13/http_204 | Bert JW Regeer | 2018-08-31 | 2 | -2/+40 |
|\ | | | | | MUST NOT send Transfer-Encoding or Content-Length for 1xx or 204 | ||||
| * | Test for HTTP 100 without Content-Length | Alexander Lukanin | 2017-08-17 | 1 | -0/+17 |
| | | |||||
| * | MUST NOT send Transfer-Encoding or Content-Length for 1xx or 204 | Alexander Lukanin | 2017-06-06 | 2 | -2/+23 |
| | | |||||
* | | Vendor asyncore into waitress as waitress.wasyncore. (#199) | Chris McDonough | 2018-08-31 | 11 | -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-header | Bert JW Regeer | 2018-08-28 | 6 | -3/+32 |
|\ \ | | | | | | | Support configurably omitting server header | ||||
| * | | No empty Via on proxied requests | Jack Wearden | 2018-05-21 | 3 | -3/+3 |
| | | | |||||
| * | | Fix test case typo | Jack Wearden | 2018-05-21 | 1 | -1/+1 |
| | | | |||||
| * | | Add more cases of removed server header & tests | Jack Wearden | 2018-05-21 | 5 | -15/+28 |
| | | | |||||
| * | | Signing contributors file | Jack Wearden | 2018-05-18 | 1 | -0/+2 |
| | | | |||||
| * | | ident=None test case | Jack Wearden | 2018-05-18 | 1 | -0/+7 |
| | | | |||||
| * | | Support configurably omitting server header | Jack Wearden | 2018-05-17 | 2 | -5/+12 |
| | | | |||||
* | | | Fix name (#196) | Steve Piercy | 2018-06-01 | 1 | -1/+1 |
| | | | |||||
* | | | Merge pull request #193 from stevepiercy/docs-meta-info | Bert JW Regeer | 2018-05-20 | 2 | -3/+120 |
|\ \ \ | | | | | | | | | Update meta data | ||||
| * | | | Remove branch mentions | Steve Piercy | 2018-05-20 | 1 | -17/+3 |
| | | | | |||||
| * | | | Delete HACKING.txt | Steve Piercy | 2018-05-20 | 1 | -218/+0 |
| | | | | | | | | | | | | | | | | - because it duplicates contributing.md and its links to pylonsproject.org | ||||
| * | | | Add RELEASING.txt | Steve Piercy | 2018-05-19 | 1 | -0/+129 |
| | | | | | | | | | | | | | | | | - copied from Pyramid and modified. | ||||
| * | | | Add HACKING.txt | Steve Piercy | 2018-05-19 | 1 | -0/+218 |
| | | | | | | | | | | | | | | | | - copied from Pyramid and modified. | ||||
| * | | | Add date for copyright | Steve Piercy | 2018-05-19 | 1 | -3/+5 |
| | | | | | | | | | | | | | | | | | | | | - fix GitHub URL - use correct name of organization | ||||
* | | | | Merge pull request #192 from stevepiercy/master | Bert JW Regeer | 2018-05-20 | 4 | -8/+27 |
|\ \ \ \ | |/ / / | | | | | Remove py33, add py37 allowed failure, for tox and Travis | ||||
| * | | | Remove py33 trove classifier, add WSGI | Steve Piercy | 2018-05-19 | 1 | -1/+1 |
| | | | | |||||
| * | | | Update readme to align with tox, travis. Add badges. | Steve Piercy | 2018-05-19 | 1 | -3/+21 |
| | | | | |||||
| * | | | attempt to allow failures for second toxenv | Steve Piercy | 2018-05-19 | 1 | -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 Travis | Steve Piercy | 2018-05-19 | 2 | -5/+5 |
| |/ / | |||||
* | | | Add contributing.md (#191) | Steve Piercy | 2018-05-19 | 2 | -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-depth | Bert JW Regeer | 2017-11-15 | 3 | -0/+17 |
|\ \ | | | | | | | Log warning when queue depth is greater than 0 | ||||
| * | | Use separate named logger for queue depth | Jamie Matthews | 2017-11-15 | 3 | -4/+7 |
| | | | |||||
| * | | Correct test for queue depth log | Jamie Matthews | 2017-11-09 | 1 | -1/+3 |
| | | | |||||
| * | | Add test for task queue depth logger | Jamie Matthews | 2017-11-09 | 1 | -0/+7 |
| | | | |||||
| * | | Log warning when queue depth is greater than 0 | Jamie Matthews | 2017-11-09 | 1 | -0/+5 |
|/ / | |||||
* | | Prep for 1.1.0v1.1.0 | Bert JW Regeer | 2017-10-10 | 2 | -1/+20 |
| | | |||||
* | | Merge pull request #170 from Pylons/bugfix/uppercase_verb | Bert JW Regeer | 2017-08-16 | 2 | -5/+21 |
|\ \ | | | | | | | No longer allow lowercase HTTP methods | ||||
| * | | No longer allow lowercase HTTP methodsbugfix/uppercase_verb | Bert JW Regeer | 2017-08-15 | 2 | -5/+21 |
| |/ |