1216 Commits

Author SHA1 Message Date
Christos Stavrakakis
efdc99dd91 Reopen stdout & stderr if redirected to error log
To use the logrotate utility, a USR1 signal is sent, and the
corresponding handler reopens the log files. However, sys.stdout and
sys.stderr, which may be redirected to the error log file, are not
updated. This commit fixes this, by closing the fileobj of the
LazyWriter object. There is no need to reopen it, since the LazyWriter
will open it when needed.
2012-11-16 10:50:54 +01:00
benoitc
d9faae01db bump to 0.16 2012-11-16 10:23:45 +01:00
benoitc
91e7d138dc fix header encoding 2012-11-16 10:05:26 +01:00
benoitc
f240b78fd3 add Eric Shull to THANKS 2012-11-16 07:59:55 +01:00
Eric Shull
e58f8b59b7 Add isatty method to LazyWriter. 2012-11-16 07:59:55 +01:00
benoitc
044732f7bc add Kenneth Reitz to THANKS 2012-11-16 07:38:30 +01:00
Kenneth Reitz
402f003ca2 Honor $PORT environment variable. 2012-11-16 07:36:25 +01:00
benoitc
6f726e0ec9 make sure to catch EPIPE and ECONNRESET error 2012-11-13 09:52:37 +01:00
benoitc
9fb0d9669c expose --pythonpath command to all modes . fix #433
--pythonpath may also be useful in other commands, so expose it to all.
2012-11-07 09:52:49 +01:00
benoitc
23f66c2389 fix latest link color 2012-11-06 06:06:20 +01:00
benoitc
88fd29db2f add a direct link to latest changes info. fix #424 2012-11-06 06:02:47 +01:00
benoitc
d06380d1f0 fix module detection. fix #322
Gunicorn has now the possibility to directly pass the settings env as
argument but it was breaking the old way to do it when giving a path to
the settings file instead.
2012-11-06 05:51:57 +01:00
benoitc
bb9ddb4ca9 Revert "Set timeout for client socket (slow client DoS)."
This changes introduced an issue with websockets support (#432) and is
probably related to #428 & #416 . It is safer for now to revert it.

This reverts commit aa22115cfc9c2b76c818ce231089b01c690052b6.

Conflicts:
	gunicorn/workers/async.py
	gunicorn/workers/sync.py
2012-11-06 05:33:29 +01:00
benoitc
daa04fc931 add a note about --check-config 2012-11-01 10:49:07 +01:00
Randall Leeds
1505e29248 integrate pytest with setup.py 2012-10-28 22:59:33 -07:00
Randall Leeds
674c1ac802 skip virtualenv dirs when looking for tests 2012-10-28 22:59:33 -07:00
benoitc
ee3946fba6 add @andrewsg to thanks. 2012-10-28 07:11:10 +01:00
benoitc
1d0eed5205 remove examples from pytest dirs 2012-10-28 07:04:11 +01:00
benoitc
e4fbc805b6 fix error spotted by @andrewsg 2012-10-28 06:56:00 +01:00
Andrew Gorcester
f7b9a08c9c resolve py3 bytes issue for django apps 2012-10-28 06:33:07 +01:00
benoitc
e372a26342 Revert "fix gevent graceful timeout for real"
This reverts commit fd6c712dd432f6cbbadd53bb59e7c5ce7b07e0cb.
2012-10-27 12:30:27 +02:00
benoitc
cd601a466a update travis.xml to est on py3 2012-10-26 21:09:23 +02:00
benoitc
fa5af28cf6 update tox & makefile for py.test 2012-10-26 21:07:27 +02:00
benoitc
f0deed1529 fix from @sirkonst feedback 2012-10-25 20:57:23 +02:00
benoitc
d218ba54c6 use args as well. 2012-10-25 10:14:05 +02:00
benoitc
e12f520cea use args for the socket errno 2012-10-25 07:14:53 +02:00
benoitc
f6dee213bd we are now using py.test for testing 2012-10-24 23:22:18 +02:00
benoitc
bb00d41ff9 fixes for py27 2012-10-24 23:08:15 +02:00
benoitc
8d453fb341 all tests pass under python 3 2012-10-24 22:07:35 +02:00
benoitc
60644b12af miscellaneous fixes 2012-10-24 14:24:19 +02:00
benoitc
039bf47c3d fix exceptions 2012-10-24 14:03:18 +02:00
benoitc
64371a0858 s/raise/reraise 2012-10-24 14:01:04 +02:00
benoitc
003c474fe2 handle bytes & native strings
This patch makes sure that we now handle correctly bytes and native
strings on python 3:

- In python 3, sockets are now taking and returning bytes.
- according to PEP3333, headers should be native strings and body in
  bytes.
2012-10-24 13:51:35 +02:00
benoitc
5759d59f08 add six modules inside gunicorn 2012-10-24 12:18:16 +02:00
benoitc
7c579f6ca4 support >= 2.6 we don't need anymore this port 2012-10-24 12:12:52 +02:00
benoitc
53ce50bc7b obvious syntax fixes preparing python3 support 2012-10-24 12:11:15 +02:00
benoitc
e984008010 add rss feed to the homepage. fix #146 2012-10-24 11:44:42 +02:00
benoitc
68b5abc881 some setup enhancements preparing the python 3 release 2012-10-24 11:33:25 +02:00
Randall Leeds
fd6c712dd4 fix gevent graceful timeout for real
`server.kill()` is too aggressive. It sends a GreenletExit exception
to all the pool workers, causing them to exit immediately.

A simple one line fix is to use `server.stop()`. In my testing, it
appears that `server.stop_accepting()` will make the server stop
listening, but pending connections already in the `accept()` backlog
are still handled. With `server.stop()` the accept backlog is not
handled, the listener is closed in the worker, but existing requests
are allowed to exit gracefully.
2012-10-24 11:27:53 +02:00
zakdances
883c36862d Update README.rst
Updated readme with script example for Gunicorn Paster.
2012-10-24 11:27:53 +02:00
benoitc
20bae2ee0f deploy using gaffer . 2012-10-24 10:40:57 +02:00
benoitc
80f8caf622 add the logo as PNG
useful when you do'nt have gimp or such on a machine.
2012-10-21 08:14:27 +03:00
benoitc
3ca6edb02b link to the doc 2012-10-18 23:17:31 +02:00
benoitc
55fbc315ce I just realized we were in 2012 ... 2012-10-18 21:59:48 +02:00
benoitc
fedb7e097e bump to 0.15.0 2012-10-18 21:58:33 +02:00
benoitc
f63583eab3 same level 2012-10-18 21:39:33 +02:00
benoitc
40d705c5d6 Revert "drops suplemental groups when droping privileges."
This reverts commit 634ccba7c3f9f72f7aedbe4690c18ebdbdf8b2e1.

doesn't work on OSX for some reason
2012-10-18 21:27:05 +02:00
benoitc
056e513bc2 add Prateek Singh Paudel to the thanks. 2012-10-18 18:43:32 +02:00
benoitc
3953380b33 add Vangelis Koukis to the THANKS. 2012-10-18 18:31:28 +02:00
benoitc
634ccba7c3 drops suplemental groups when droping privileges.
fix issue spotted by Vangelis Koukis
2012-10-18 18:31:28 +02:00