benoitc
5f4ebd2eb2
don't return utf8 header in example
...
Since the updated RFC 7230 implys that new Headers Key and Value should be
sent as USASCII only don't try to test utf8 headers in examples.
We now only encode them to ascii. Gunicorn will fail if it's unable to encode
them letting the responsability to the application to correctly encode the
response. (we are just a gateway).
While i'm here simplify the code to not create an extra function only used at
one place.
NOTE: if anyone come to a better solution, i am happy to revisit it on the
next release.
fix #1151
2015-11-25 13:29:46 +01:00
Benoit Chesneau
6b92575e00
Merge pull request #1094 from benoitc/1038-sendfile-seek
...
Simplify sendfile logic
2015-11-23 09:24:46 +01:00
Benoit Chesneau
f74dd0aa3c
Merge pull request #1149 from benoitc/fix/gh1148
...
check if the auth type is Basic before getting the user name
2015-11-21 12:10:27 +01:00
benoitc
45f008187b
also ignore binascii error when decoding the user in access log
2015-11-21 11:27:27 +01:00
benoitc
38261b5235
check if the auth type is Basic before getting the user name
...
fix #1148
2015-11-21 11:27:27 +01:00
benoitc
fd2350aa4f
asert plain, to work with py35
...
fix #1150
2015-11-21 11:22:34 +01:00
benoitc
a5212691e5
Revert "add mock to the requirements"
...
This reverts commit 48831f526f0fd4235b953b6637cc86f1b9f0b7b4.
2015-11-21 10:03:45 +01:00
benoitc
48831f526f
add mock to the requirements
2015-11-21 09:52:12 +01:00
benoitc
5d2ff5e2ce
bump pytest version
...
fix #1150
2015-11-21 09:49:59 +01:00
benoitc
f154a889dc
fix python 3.5 support
2015-11-20 13:56:09 +01:00
benoitc
6999878a40
forgot to remove the targets from tox
2015-11-20 13:46:13 +01:00
benoitc
8609a36f1c
only support N, N-1 versions of pythons
2015-11-20 13:37:43 +01:00
benoitc
5d902e2a07
prepare the 19.4 release.
...
update changelog, bump the version.
2015-11-20 11:00:00 +01:00
Benoit Chesneau
c8f820b95a
Merge pull request #1136 from shrkw/1135-fix-ssl-options-for-tornado
...
fix-ssl-options-for-tornado
2015-11-16 15:37:09 +01:00
Randall Leeds
18d2b92146
Simplify sendfile logic
...
A safe and reliable check for whether a file descriptor supports mmap
is to directly check if it is seekable. However, some seekable file
descriptors may also report a zero size when calling fstat. If there
is no content length specified for the response and it cannot be
determined from the file descriptor then it is not possible to know
what chunk size to send to the client. In this case, is it necessary
to fall back to unwinding the body by iteration.
The above conditions together reveal a straightforward and reliable
way to check for sendfile support. This patch modifies the Response
class to assert these conditions using a try/catch block as part of
a new, simplified sendfile method. This method returns False if it
is not possible to serve the response using sendfile. Otherwise, it
serves the response and returns True. By returning False when SSL is
in use, the code is made even simpler by removing the special support
for SSL, which is served well enough by the iteration protocol.
Fix #1038
2015-11-10 17:57:56 -08:00
Berker Peksag
302abd551a
Merge pull request #1144 from edmorley/fix-faq-proc_name-link
...
Docs: Fix the link to the proc_name setting on the FAQ page
2015-11-11 02:28:58 +02:00
Ed Morley
b4523cfe7d
Docs: Fix the link to the proc_name setting on the FAQ page
2015-11-10 14:14:07 +00:00
Berker Peksag
cf01376edc
Merge pull request #1141 from irachex/fix-docs
...
Fix worker class link in FAQ
2015-11-04 21:50:23 +02:00
Huayi Zhang
dc0dbf3f6c
Fix worker class link in FAQ
2015-11-05 02:47:59 +08:00
Berker Peksag
eb29a449aa
Merge pull request #1137 from abesto/doc/graceful_timeout
...
Clarify documentation of graceful_timeout
2015-11-02 12:15:38 +02:00
Zoltán Nagy
f1bb0342ec
Clarify documentation of graceful_timeout
2015-11-02 08:49:13 +01:00
Benoit Chesneau
d922df3902
make sure the users can access to the logs
...
make sure that a user is able to access to the logs after dropping a
privilege.
fix #1116
2015-10-31 09:17:43 +01:00
Hiroyuki Shirakawa
b4e86ad73f
Fixes #1135
2015-10-28 12:04:08 +09:00
Randall Leeds
821123d48f
Merge pull request #1128 from NextThought/1126-gevent-time
...
Make the gevent workers handle the quit signal by deferring to a new greenlet
2015-10-26 10:41:21 -07:00
Randall Leeds
50a40b52b6
Merge pull request #1132 from bungoume/add-accesslog-params
...
Add accesslog params
2015-10-22 11:37:05 -07:00
Berker Peksag
e6d63891c9
Merge pull request #1133 from bungoume/update-docs
...
Fix config description of accesslog user-name params
2015-10-21 20:52:08 +03:00
y.umezaki
7dd8a53c8c
Add accesslog params
...
Fix KeyError
Update access logger tests
Update settings.rst docs
2015-10-22 02:28:35 +09:00
umezaki
03cd031b06
Fix accesslog params description
2015-10-22 02:02:13 +09:00
Jason Madden
fb96a9ae69
Make the gevent workers handle the quit signal by deferring to a new greenlet. Fixes #1126 .
2015-10-15 18:13:35 -05:00
Benoit Chesneau
9158ab20f8
Merge pull request #1127 from nickstenning/paste-respect-global-defaults
...
Respect defaults when running a paster application
2015-10-15 16:36:17 +02:00
Nick Stenning
b135c0570f
Respect defaults when running a paster application
...
The values of both the 'workers' and 'umask' settings have global
defaults. In the case of 'workers', this global default can be
overridden by the WEB_CONCURRENCY environment variable, which prior to
this commit is ignored by `gunicorn --paste`.
Removing this duplication of defaults allows `gunicorn --paste` to
respect settings from:
- the environment (WEB_CONCURRENCY)
- the paste configuration file
- CLI flags
2015-10-15 14:10:49 +02:00
Benoit Chesneau
44ac4e457f
inherit from Exception where it needs to be
...
inherit from Exception where it needs to be and document why we use BaseException.
fix #997
2015-10-09 07:48:18 +09:00
Randall Leeds
9e9f1b6cca
Merge pull request #1106 from keakon/master
...
remove checking timeouts while graceful stopping tornado worker
2015-10-08 10:18:09 -07:00
keakon
5708d1d23b
remove checking timeouts
2015-10-08 12:20:43 +08:00
Berker Peksag
e1912db59a
Fix a Sphinx build warning.
2015-09-26 11:34:18 +03:00
Berker Peksag
353f610c1e
Do not duplicate nginx config files.
...
Fixes #1050
2015-09-26 11:33:12 +03:00
Randall Leeds
ed9d5dd824
Merge pull request #1115 from benoitc/fix/627
...
makes sure that file handles are correctly reopened on HUP
2015-09-24 12:20:24 -07:00
benoitc
2221225969
makes sure that file handles are correctly reopened on HUP
...
This change makes sure we don't recreate the Logger class here so we
don't reinitialise the log handlers.
fix #627
2015-09-23 14:00:35 -07:00
Berker Peksag
12b4862c1b
Merge pull request #1117 from lovedboy/webpy
...
add web.py frameworks example
2015-09-22 16:37:35 +03:00
lovedboy
ac4292f60e
add web.py frameworks example
2015-09-22 21:09:19 +08:00
Berker Peksag
811ea7880e
Unpin mock 1.0.1 since it has support for Python 2.6.
2015-09-20 06:52:55 +03:00
Berker Peksag
5b823e283c
Merge pull request #1112 from tnir/update-install-doc
...
Update Debian/Ubuntu installation instructions.
2015-09-09 12:04:38 +03:00
Takuya Noguchi
db2c2488cb
Remove installation guide for Ubuntu lucid.
2015-09-09 16:19:26 +09:00
Takuya Noguchi
46b70016d2
Update Debian/Ubuntu installation instructions.
2015-09-09 01:51:22 +09:00
Berker Peksag
9c1d4424e0
Merge pull request #1102 from ephes/latin1_headers
...
ISO-8859-1 encoded http headers
2015-08-31 06:55:04 +03:00
Jochen Wersdörfer
338721ac56
encode http headers as latin1 RFC 2616
2015-08-29 11:16:58 +02:00
Benoit Chesneau
209a605a33
Merge pull request #1105 from tumb1er/ssl_gaiohttp
...
SSL support for gaiohttp worker
2015-08-25 15:23:49 +02:00
tumb1er
21c7e106a3
SSL support for gaiohttp worker
...
Initialize and pass `SSLContext` to `asyncio.loop.create_server` to enable ssl support.
2015-08-25 16:15:46 +03:00
Berker Peksag
d9a69de63e
Merge pull request #1104 from vihangd/fix_docs
...
Fixed documentation for worker class
2015-08-25 08:42:49 +03:00
Vihang D
8de5eb9b15
Fixed documentation for WORKERCLASS
2015-08-25 10:55:50 +05:30