1990 Commits

Author SHA1 Message Date
benoitc
4de78cffdf we are in 2015 2015-01-30 15:23:10 +01:00
benoitc
76945e47f9 update 19.2 changelog 2015-01-30 15:19:59 +01:00
benoitc
2d76b57454 point to the correct documentation link
fix #967
2015-01-30 09:42:46 +01:00
benoitc
8936d82747 clean threads before exiting 2015-01-30 06:53:11 +01:00
benoitc
1a1c88deff fix wording 2015-01-29 23:45:18 +01:00
benoitc
5f1391b033 add security mailing list 2015-01-29 23:43:33 +01:00
Berker Peksag
0a847ff870 Add an "htmlview" target to open docs after building them.
This is helpful if you build and test documentation updates in
your development env.

Copied from CPython's Doc/Makefile.
2015-01-26 19:04:24 +02:00
Berker Peksag
d49d40097a Combine logging section in gunicorn/config.py.
Fixes #969.
2015-01-26 18:56:49 +02:00
Benoit Chesneau
fa1b7cc828 Merge pull request #962 from benoitc/fix/908
stop to accept more requests when maximum accepted is achieved
2015-01-21 23:27:24 +01:00
Berker Peksag
cc1ddf16e2 Merge pull request #954 from svetlyak40wt/patch-1
Fix header levels and use them consistently.
2014-12-22 22:53:19 +02:00
Alexander Artemenko
55daf19229 Fix header levels and use them consistently 2014-12-21 21:23:58 +03:00
benoitc
b1bde15113 check if the parent is alive 2014-12-21 09:41:09 +01:00
Benoit Chesneau
388c59dcc2 Merge pull request #960 from benoitc/fix/910-reloader-tracebacks
Let the reloader kill the worker by signal only
2014-12-20 23:06:15 +01:00
benoitc
1f92511430 make sure we can alwas accept connection.
This is done by limiting the number of kept alived requests to MAX WORKER
CONNECTIONS - N Threads so at any time we can accept N connection.
2014-12-20 16:52:22 +01:00
benoitc
fcd9d04515 stop to accept more requests when maximum accepted is achieved
this change makes sure that a worker don't handle more requests than it can
achieved.  The new workflow is quite more simple:

listeners are put in the poller. On read we try to accept on them.
When a connection is accepted it is put in the execution queue
When a request is done and the socket can be kept alived, we put it in the
poller, on read event we will try to handle the new request. If it is not put
out of the poller before the keepalive timeout the socket will be closed.
if all threads are busy we are waiting until one request complet. If it
doesn't complete before the timeout we kill the worker.

fix #908
2014-12-20 11:16:58 +01:00
Randall Leeds
c3b0f9f59a Let the reloader kill the worker by signal only
There is no reason to raise a `SystemExit` because the reloader thread
will die when the worker exits anyway. Having this exception can cause
tracebacks during interpreter shutdown (#910).

Close #910
2014-12-19 17:19:51 -08:00
Randall Leeds
d53ac880b2 Merge pull request #959 from benoitc/test/gh942-remove-timeout
remove dynamic timeout temporarely
2014-12-19 10:14:53 -08:00
Randall Leeds
54af01b1be Rename GeventResponse.response_length to sent
This makes it compatible with the duck typing of the response object
in the glogging request logger.
2014-12-19 09:54:37 -08:00
benoitc
41f14bf46e remove dynamic timeout temporarely
this change is removing the dynamic timeout to make it sure it doesn't have
any side effect in the worker monitored like reported in #942
2014-12-19 09:00:35 +01:00
benoitc
fd95f66f2d fix run loop in sync worker 2014-12-19 08:59:22 +01:00
benoitc
d1a0973225 send SIGQUIT/SIGTERM only once to the workers
there is no need to send more than once the signal to the workers when
exiting. With this patch we are sending once the QUIT/TERM signal and  then
wait until the graceful timeout or until there are workers alive.

fix #655
2014-12-19 08:03:22 +01:00
Mark Lee
e63df69229 Clarify concurrent.futures requirement error message
Specify which PyPI package needs to be installed in order for the gthread
worker implementation to work on Python < 3.2.
2014-12-08 03:21:31 +02:00
Berker Peksag
44b090fa47 Remove an incorrect note from instrumentation.txt. 2014-12-01 08:52:17 +02:00
Berker Peksag
9f72be235c Add missing period. 2014-12-01 08:45:20 +02:00
Berker Peksag
9a3d580c52 Simplfy documentation index page. 2014-12-01 07:08:38 +02:00
Berker Peksag
4cab542097 Resort docs index. 2014-12-01 07:08:18 +02:00
Berker Peksag
6325898611 Fix syntax highlighting in configure.rst. 2014-12-01 07:07:55 +02:00
Berker Peksag
2043779b23 Improve the "Running Gunicorn" command. 2014-12-01 07:06:55 +02:00
Berker Peksag
761a1e5b76 Add ref links to configure.rst and faq.rst. 2014-12-01 07:06:18 +02:00
Berker Peksag
f4083fc72b Fix history header in news.rst. 2014-12-01 07:05:39 +02:00
Berker Peksag
963a677f31 Fix settings reference. 2014-12-01 07:04:57 +02:00
Berker Peksag
f0b9468ea3 Document statsd_* commands. 2014-12-01 07:04:10 +02:00
Berker Peksag
43d1eba3e3 Simplify README.rst. 2014-12-01 07:02:47 +02:00
Berker Peksag
7ce90373a8 Remove unused imports. 2014-12-01 07:00:02 +02:00
Randall Leeds
f3bb0e1e1d Fix typo WSGIErrorsWraper -> WSGIErrorsWrapper 2014-11-30 20:54:30 -08:00
Berker Peksag
b8b0a87fee Fix header in news.rst. 2014-11-30 08:49:20 +02:00
Berker Peksag
496c207a26 Fix ref URL of the pr role. 2014-11-30 00:39:00 +02:00
Berker Peksag
d12fc05de0 Added issue and pr roles.
This commit also split news.rst and 2014-news.rst. news.rst will
only contains latest unreleased version's changelog.
2014-11-30 00:39:00 +02:00
Benoit Chesneau
af4b1b9755 Merge pull request #946 from berkerpeksag/fix-namerror
Fix NameError in gunicorn/workers/gthread.py.
2014-11-24 23:06:59 +01:00
Benoit Chesneau
859a4b4bb4 Merge pull request #945 from berkerpeksag/flake8-cleanup
Use more Pythonic style in gunicorn/.
2014-11-24 23:06:34 +01:00
Berker Peksag
4713ef7f37 Pass a 'sent' parameter to Mock(). 2014-11-24 23:07:46 +02:00
Matt Long
71f7d353f0 Use sent instead of response_length in access log
Previously, resp.response_length is used for the b atom of the access
log formatter. If the application does not set a content-length header,
response_length is left as `None`, resulting in b being set to the
fallback "-". resp.sent is a more reliable way to determine the number
of bytes in the response body.
2014-11-24 23:03:47 +02:00
Berker Peksag
6086e31d07 Fix NameError in gunicorn/workers/gthread.py. 2014-11-24 18:45:00 +02:00
Berker Peksag
56e7d15fb8 Use more Pythonic style in gunicorn/. 2014-11-24 18:43:21 +02:00
Benoit Chesneau
783984cabd Merge pull request #944 from redspade/master
Added missing import for `platform` in tests/support.py for os x.
2014-11-24 15:06:19 +01:00
Sungho Ryu
53a4ea556f Added missing import for platform in tests/support.py for os x. 2014-11-24 14:58:31 +01:00
Berker Peksag
194b2d68e3 Also update docs/source/news.rst for #845. 2014-11-23 23:24:52 +02:00
Randall Leeds
cb7859caea add news 2014-11-23 12:05:56 -08:00
Randall Leeds
ac3554cb91 remove whitespace 2014-11-23 11:57:20 -08:00
Berker Peksag
469b97a8b7 Merge pull request #943 from BFriedland/copyedits
Fixed typos/copyediting
2014-11-23 01:10:59 +02:00