wong2
250d98f48a
fix for review
2015-03-14 23:28:24 +08:00
wong2
d03891a470
reloader should survive SyntaxError
2015-03-11 20:46:44 +08:00
Randall Leeds
3bb4de4dff
Actually expose the reloader
...
The reloader was not actually being stored on the worker.
2015-03-06 03:04:18 -08:00
Benoit Chesneau
cc12055baf
fix doc link
2015-03-06 11:17:12 +01:00
Benoit Chesneau
2a9ccea7b5
fix typo
2015-03-06 11:09:05 +01:00
Benoit Chesneau
e5d0e1505f
correct version is 19.3
...
since changes are added to the core, let's show it in versionning
2015-03-06 11:05:03 +01:00
Benoit Chesneau
e7a94744fa
fix typos
2015-03-06 10:52:18 +01:00
Benoit Chesneau
ccf5a23b84
website : redirect doc link to 19.2.2 doc
2015-03-06 10:41:19 +01:00
Benoit Chesneau
39761603cd
bump to 19.2.2
2015-03-06 10:32:35 +01:00
Benoit Chesneau
30177b879a
make sure a listener is inheritable
...
fix #978
2015-03-06 10:17:26 +01:00
Benoit Chesneau
eb485d2134
make worker check_config method optionnal
2015-03-06 10:10:42 +01:00
Benoit Chesneau
e5f6b8024d
add check_config instance method to workers
...
Add a method to check if config requirements are OK for a specific worker by
adding the `check_config` instance method. This method takes 2 arguments: the
config instance followed by the logger instance to log.
This method is right now used in the thread worker to display a warning in
the case it can't handle keep alive connections. This change is related to #979 .
2015-03-06 10:01:31 +01:00
Benoit Chesneau
a459986cfd
like in threaded workers let some time to the vm to release locks
...
applied similar change to 8936d8274770bec5fced09b28eb687b23bef20c1
fix #981
2015-03-06 08:51:14 +01:00
Benoit Chesneau
803a2d71b0
fix select timeout in sync worker with multiple connections
...
fix #983
2015-03-06 08:35:17 +01:00
Randall Leeds
5b3535bf64
Merge pull request #988 from siznax/fix-examples
...
fixed syntax errors in examples/gunicorn_rc.
2015-02-27 12:44:50 -08:00
siznax
b054b7e91c
fixed syntax error in examples/gunicorn_rc.
2015-02-26 15:56:32 -08:00
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