Paul J. Davis
6bf6fbe72f
Added extra WSG/HTTP classifiers for PyPI
...
* We were missing some obvious classifiers for HTTP and WSGI
2011-02-12 11:52:12 -05:00
benoitc
a942f6a06c
just load environ when we load the app
2011-02-09 00:06:57 +01:00
Justin Quick
76a0d7ae83
typo
2011-02-05 10:50:37 +08:00
Benoit Chesneau
618bc873d8
typo.
2011-01-31 10:00:23 +01:00
Benoit Chesneau
0bd86f7729
fix ipv6 address parsing in forward address. Spotted 3 weeks ago by
...
Jonathan Leroy.
2011-01-30 18:46:17 +01:00
Paul J. Davis
cdd58014a7
Prevent exceptions from being logged twice.
...
* Remove logging call in worker subclasses and rely on the
logging in Worker.handle_error to do the proper logging.
2011-01-29 16:40:25 -05:00
Paul J. Davis
885b530e1a
Always log exceptions during request handling.
...
* Always log the exception locally
* Still only pass the exception in the HTTP response if
debug is turned on.
* Slight cosmetic changes to the actual HTML of the error
response.
2011-01-29 14:43:18 -05:00
Benoit Chesneau
a1ced17d8b
test only if clengtih is defined.
2011-01-15 17:50:59 +01:00
Paul J. Davis
f942b3a8b2
Fix broken chunked response generation.
...
* Transfer-Encoding header was not being set.
* Whether a connection should close should depend on whether
we are able to continue accepting requests.
2011-01-14 19:24:21 -05:00
Paul J. Davis
bcafd6eb22
Fix broken responses with missing Content-Length.
...
We were testing for None and using a default value of -1.
2011-01-14 19:16:23 -05:00
Benoit Chesneau
d1fa62d98a
fix issue #152 .
2011-01-14 17:12:40 +01:00
Randall Leeds
0b8e48021e
support bdist_rpm
2011-01-11 15:57:31 +01:00
benoitc
39f5d313f7
improve content-length handling. Chunked encoding is only used when not
...
content-length is provided and http version >= 1.1. In other case send
until we content is empty.
Also HTTP don't expect we can send more than content-length if header is
set, so discard any content if we have already send the expected
lenghth. (spotted by @GrahamDumpleton)
reviewed and OK by @davisp. More readable function by @davisp
2011-01-10 12:02:24 +01:00
benoitc
cd726f6d8c
fix issue #142 . Thanks
2011-01-04 09:42:49 +01:00
benoitc
7436161800
fix issue #141 . We don't have yet an rss link.
2011-01-04 08:58:43 +01:00
Paul J. Davis
330e27166b
Remove setuptools from install_requires.
...
We already import setuptools in setup.py so its not necessary
to explicitly list it. Also, it apparently prevents users from
upgrading using distribute.
Thanks to Jannis Leidel for the report.
2011-01-02 17:58:19 -05:00
benoitc
c8d3b7764f
don't truncate, just create a new instance.
2010-12-27 14:07:08 +01:00
benoitc
f9a17e467c
this change hasn't been commited yet. spotted by tilgovi on irc.
2010-12-22 23:45:54 +01:00
benoitc
7e6beaf8e7
don't display broken pipe
2010-12-22 23:07:27 +01:00
benoitc
1b2cc70688
empty line. launchpad is strict.
2010-12-22 20:55:19 +01:00
benoitc
0bf7526d6a
bump debian package
2010-12-22 20:54:04 +01:00
benoitc
3dc2b32aab
0.12 is today
2010-12-22 19:58:39 +01:00
benoitc
16fd5d3c20
remove some useless code. pyflakes my friend.
2010-12-22 19:52:34 +01:00
benoitc
c90ecd1eba
put back murder_workers. We are not sure there isn't a border effect with
...
active_workers patch. So postpone it for 0.12.1 waiting more feedbacks
and tests. "<davisp> Sounds good ot me"
2010-12-22 18:34:57 +01:00
Paul J. Davis
07f0c0f21d
Fixes signal reaction times.
...
After messing around trying to make this more elegant we've decided to
just slap a 1s poll to the thing which seems to fix various bugs in the
async event handling.
2010-12-20 08:15:45 -05:00
benoitc
3ef8688fcc
fix issue #137 . Use our own way to unlink temporary files so we can set
...
permissions and umask on it.
2010-12-20 13:51:03 +01:00
benoitc
8eca403d89
only 2 values to print.
2010-12-13 11:18:41 +01:00
benoitc
0716a3bd84
fix issue #136 . thanks
2010-12-13 11:17:54 +01:00
Paul J. Davis
80594c5442
Fix errors spotted by jturnball.
2010-12-12 18:12:33 -05:00
benoitc
2e39db265c
rather than sleeping the timeout, just test if time is elapsed, then
...
notify. Speed graceful reload and exit.
2010-12-12 22:57:50 +01:00
benoitc
7ac83b918e
typo
2010-12-12 22:20:20 +01:00
benoitc
f0a4dc493f
update doc.
2010-12-12 22:18:41 +01:00
benoitc
df6855f310
improve settings module import. Fix issues #127 & #128 . thanks to
...
gnublade for patches and feedback.
2010-12-12 21:24:50 +01:00
Paul J. Davis
1f8f4228f0
Reformat help string for command line display.
2010-12-12 12:09:23 -05:00
Paul J. Davis
7f800c0eeb
Slight rewording for the Keep-Alive FAQ.
2010-12-12 12:07:25 -05:00
benoitc
73d7e906a9
support logging config file in erlir python versions.
2010-12-12 17:00:19 +01:00
benoitc
b1816dd012
remove some spaces.
2010-12-12 16:27:24 +01:00
benoitc
8e80328114
add support for logging configuration using a ini file. It uses the
...
standard Python logging's module Configuration file format
(http://docs.python.org/library/logging.html#configuration-file-format )
and allows anyone to use his custom file handler. Fix issues #117 and #111 .
2010-12-12 16:13:10 +01:00
benoitc
a8e34ac16c
send appropriate error status on http parsing. Fix issue #132 .
2010-12-12 14:16:31 +01:00
benoitc
b62055d529
fail sooner on user and group error. Fix issue #75 .
...
Note: the process could be extended to other variable that need specific
parsing.
2010-12-12 12:38:47 +01:00
benoitc
c4312b94c9
keepalive faq.
2010-12-12 10:47:05 +01:00
Randall Leeds
29a8254b22
don't kill old workers until new ones are active
2010-12-02 12:30:57 -05:00
benoitc
0993567657
fix manifest
2010-12-02 10:48:32 +01:00
benoitc
95520d4728
set permissions of the pidfile so other user can read it and use it.
2010-11-24 16:35:33 +01:00
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