Randall Leeds
5eff21ff0f
Merge pull request #986 from berkerpeksag/remove-asserts
...
Raise TypeError instead of AssertionError.
2015-02-23 14:30:31 -08:00
Berker Peksag
d376b6f78a
Raise TypeError instead of AssertionError.
...
assert statements will be removed if you run Python
in optimized mode (e.g. with -O flag).
2015-02-23 00:35:47 +02:00
Randall Leeds
b6430c36a9
Set self.reloader for hooks
...
This gives hooks that can access the worker access to the reloader,
useful for adding additional watched files.
Close #984
2015-02-17 12:46:02 -08:00
Berker Peksag
b8cdfaaccd
Make Logger.loglevel a class attribute.
...
This way it will be easier to change log level of a custom
Logger class:
class MyLogger(gunicorn.glogging.Logger):
loglevel = logging.WARNING
2015-02-06 08:48:11 +02:00
benoitc
38a61e47fe
bump site to 19.2.1
2015-02-04 14:47:56 +01:00
benoitc
48b36fb71f
bump to 19.2.1
2015-02-04 14:43:57 +01:00
benoitc
8b6d86ef2b
fix debug mode in gaiohttp worker
...
The debug setting has been removed and now only the debug level can be used to know if
we are in debug mode or not. This change update the gaiohttp worker to handle
that. While I'm here, expose the loglevel from the Logger class.
fix #977
2015-02-04 14:31:00 +01:00
benoitc
d8eca3ebf1
point to the security mailing-list in the contributing doc.
...
fix #582
2015-02-04 08:26:46 +01:00
Randall Leeds
48cdfcc267
Merge pull request #972 from berkerpeksag/small-impr
...
Small improvements
2015-02-02 12:48:02 -08:00
Randall Leeds
01327a4e4e
Merge pull request #971 from berkerpeksag/parser-cleanup
...
Make mesg_class a class attribute.
2015-02-02 12:47:40 -08:00
Berker Peksag
f22267a1be
Fix gunicorn.http.__all__.
...
All parameters should be a str type.
2015-01-30 22:30:56 +02:00
Berker Peksag
e79900b465
Print current year automatically.
2015-01-30 22:29:33 +02:00
Berker Peksag
5028e8a534
Fix Sphinx warnings in news files.
2015-01-30 22:23:00 +02:00
Berker Peksag
6db35f66a3
Make mesg_class a class attribute.
2015-01-30 22:14:34 +02:00
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