797 Commits

Author SHA1 Message Date
benoitc
53ec6b02a5 split is enough 2010-11-20 22:01:12 +01:00
benoitc
46bde6af85 add multidomainapp example from Anand Chitipothu. Fix issue #99. Thanks! 2010-11-20 21:18:32 +01:00
benoitc
09e243d6f6 ipv6 support in gunicorn. fix ticket #107. 2010-11-20 21:04:03 +01:00
benoitc
108ccb7690 'm tired of this versionning based on git for dev. Not really useful
since noone use it and force sometimes to have to reinstall in
virtualenv.
2010-11-20 19:20:58 +01:00
benoitc
ac1688fe9b fix temporary file leaking . 2010-11-20 16:51:52 +01:00
benoitc
0c00019312 should fix problem with import when using gunicorn_django command line.
Also try to detect project path so we don't need to set the PYTHONPATH
every time we use the DJANGO_SETTINGS_MODULE environment variable.
2010-11-18 14:57:05 +01:00
Paul J. Davis
e591059358 Set the number of workers to zero on WINCH.
We need to update the number of workers so they aren't restarted
the next time the arbiter wakes up and runs manage_workers. Also
fixed a typo for the log statement.

Thanks to Randall Leeds for the report and patch.
2010-11-15 21:37:15 -05:00
benoitc
5e83c3c704 fix issue spotted by oit on github. 2010-11-12 14:35:17 +01:00
Paul J. Davis
625b858df0 Fix DjangoApplicationCommand constructor. 2010-11-11 11:32:25 -05:00
benoitc
bc2d0112a8 use only git shorttag with 'develop' command, also don'ty load it each
time. spotted by @davisp .
2010-11-10 19:28:18 +01:00
benoitc
f29c610916 we aren't the leader all the time. 2010-11-10 19:02:37 +01:00
Paul J. Davis
fc96d45838 Set the correct Connection header in sync workers.
We forgot to force this when we changed to HTTP/1.1 responses for the
async worker classes. Thanks to @russss on Twitter for the report.
2010-11-08 12:55:08 -05:00
Paul J. Davis
011ae33c0a Make sure that post_request is called.
Fixes #119
2010-11-03 13:28:48 -04:00
benoitc
1dad259ba4 we are releasing today not yesterday. 2010-10-30 10:48:57 +02:00
Ben Cochran
e7938fa3df Fixed incorrect example config. (Since 036f8b5 it's been pre/post for hooks, not before/after) 2010-10-30 15:56:23 +08:00
benoitc
2ad2a61f0c fix issue #104. 2010-10-29 05:58:09 +02:00
benoitc
658296f717 bump to 0.11.2 2010-10-29 05:42:42 +02:00
benoitc
3b9ae15bc3 Merge branch 'master' of github.com:benoitc/gunicorn 2010-10-28 06:14:59 +02:00
benoitc
95a4af2a9c display the right error when a worker can't be used. 2010-10-28 06:13:57 +02:00
benoitc
939b459c38 don't notify so much the arbiter. spotted by @davisp & @prencher . tests are ok. 2010-10-28 06:13:45 +02:00
benoitc
47e87df132 display the right error when a worker can't be used. 2010-10-28 06:05:01 +02:00
benoitc
f92a5409f5 don't notify so much the arbiter. spotted by @davisp . tests are ok. 2010-10-28 05:44:01 +02:00
benoitc
be1990007d fix issue #110, handle environment variable (DJANGO_SETTINGS_MODULE by
default) to find setting module. Thanks for the feedback!
2010-10-25 19:17:46 +02:00
benoitc
c6f1a56f19 add Oliver Tonnhofer to the THANKS. 2010-10-22 09:24:42 +02:00
benoitc
e33999a870 reuse the code. 2010-10-22 07:11:32 +02:00
benoitc
cae9b0bece fix gunicorn paster. Now we have real HUP with paster. Also use paster
logging everywhere.
2010-10-22 06:59:46 +02:00
Oliver Tonnhofer
d546d490e5 add support for logging configuration in paster ini-files 2010-10-22 05:49:49 +02:00
benoitc
fce191c0db fix issue #106. Thanks for the report. 2010-10-22 05:20:21 +02:00
Paul J. Davis
0f3f2e6ab7 Fixes loading config files with Django apps.
Thanks to Adrien Lemaire for noticing the issue.

Fixes #98
2010-10-07 10:15:36 -04:00
Paul J. Davis
ac9f38de53 Fix up for ./manage.py run_gunicorn 2010-10-01 08:54:19 -04:00
Paul J. Davis
a28c484d5d Fixed a typo in the docs. 2010-09-27 11:13:40 -04:00
Benoit Chesneau
023cd4870f I need sleep 2010-09-22 21:36:57 +02:00
Benoit Chesneau
c5c6defb0f upstart error 2010-09-22 21:15:36 +02:00
Travis Swicegood
2209c83c3e fix minor typo in docs so it matches the code 2010-09-18 19:53:39 +02:00
benoitc
d832391eee backport from restkit. Fix readline in wsgi.input 2010-09-18 19:43:46 +02:00
benoitc
1366b2b288 update thanks 2010-09-13 12:12:35 +02:00
Travis Cline
3f403a2ca9 Added references to libevent (which is what gevent uses) where appropriate. 2010-09-13 18:10:28 +08:00
Travis Cline
8e1bab434e Moved the gevent import later as it's causing gunicorn to fail to load when using this example hook. 2010-09-13 18:10:27 +08:00
Paul J. Davis
30ba1943c0 Regenerated documentation. 2010-09-06 16:04:42 -07:00
Anand Chitipothu
bba70aba09 Added link to Unicorn project website. 2010-09-07 06:54:24 +08:00
Paul J. Davis
3cc0e5df8a Add SERVER_SOFTWARE to the os.environ
Requested to allow a WSGI app to detect if its running in production
or development modes.
2010-09-06 15:23:30 -07:00
Bartosz Oler
995d060384 Add missing "traceback" import in djangoapp.py.
An except block in DjangoApplicationCommand was referencing traceback
module, which has not been imported.
2010-09-05 01:48:54 +08:00
benoitc
9be094f9b0 update debian pkg 2010-09-02 22:40:04 +02:00
benoitc
e49c401a15 update doc. 2010-09-02 22:24:53 +02:00
benoitc
4ed9901708 fix max-requests from @davisp and me, reviewed by @davisp 2010-09-02 21:59:02 +02:00
benoitc
66cc6975d1 useless log. 2010-09-02 21:59:02 +02:00
Paul J. Davis
9c3a115e6d Add paparent to the THANKS file.
Previous commit fixes #87
2010-09-02 21:59:02 +02:00
PA Parent
7479b598b4 Fix the default proc name internal setting to work 2010-09-02 21:59:02 +02:00
benoitc
7715199b48 it's better to test when you use the right code to do it. We had a
blocking operation django example (we read a file already on the fs and
recreate another which blocked async schedulers).

While I'm here ease the code of eventlet worker. Just use the convenient
eventlet.serve function which already manage what we do and revert sopme
useless changes in body and header parsing.
2010-09-02 14:55:56 +02:00
Paul J. Davis
7e4ca4b809 Implementation of the max-requests feature.
Works on sync and eventlet works. Doesn't work on gevent_pywsig or
gevent_wsgi workers as we don't control their main loops. Tornado
workers appear to be broken.

Worst of all, this causes vanilla gevent workers to segfault. I'm
waiting to see if there's a known issue before considering what to
do next. Worst case we could refuse to run with the bad combination
of settings.
2010-09-01 11:32:26 +02:00