488 Commits

Author SHA1 Message Date
Paul J. Davis
5580b813e9 Reformat some docstrings. 2010-02-27 01:27:35 -05:00
Paul J. Davis
8b38298114 Update the log formatting.
Different date format to remove sub-second timing.
Added process id's to all log messages.
Updated various log messages.
2010-02-27 01:16:57 -05:00
Paul J. Davis
1e1207418f Fixes Issue #9 - Recycle oldest workers first.
The worker that's been alive the longest will now be the first
worker to be recycled when the master process receives a TTOU
signal.
2010-02-27 00:46:31 -05:00
Paul J. Davis
fd059eaf8f Fixes Issue #22 - Make EPIPE stacks disappear.
Still prints a line like:

    2010-02-27 00:25:21,305 - WARNING Ignoring EPIPE
2010-02-27 00:25:59 -05:00
benoitc
d91939f110 fix should_close. not really useful in gunicorn case but then we are in
sync with restkit
2010-02-26 23:26:15 +01:00
benoitc
6df6e89cbc allow gunicorn to send chunked response (if Transfer-Encoding ==
chunked)
2010-02-26 14:05:35 +01:00
benoitc
b6693a81aa fix chunked encoding. 2010-02-26 04:56:46 +01:00
benoitc
6badf22041 just send 2010-02-25 20:01:25 +01:00
benoitc
7d31b224b9 except with error .. 2010-02-25 16:05:51 +01:00
benoitc
1126579963 use sendall instead of our loop 2010-02-25 15:43:33 +01:00
Paul J. Davis
9c60695713 Update EPIPE handling.
Now ignore EPIPE tracebacks as they're most likely just notifications
that a client disconnected before reading the entire response.
2010-02-25 09:38:32 -05:00
Paul J. Davis
f03ae0646d Minor docstring edit. 2010-02-25 09:16:19 -05:00
benoitc
096da6ee39 retry on first EPIPE 2010-02-25 13:22:43 +01:00
benoitc
cf7322ca43 fix readline in tee 2010-02-25 13:04:41 +01:00
benoitc
ac74d5079d fix chunked decoding in TeeInput. We need to make sure we didn't have
already in the buffer the last chunk. it fixes socket timeout.
Discovered when hacing on it with restkit.
2010-02-25 02:59:44 +01:00
benoitc
3a2673d52e don't return headers here. 2010-02-24 18:57:12 +01:00
benoitc
6c48e91904 allow config file to set proc_name. spotted by @jbergstroem on irc.
thanks!
2010-02-24 14:20:28 +01:00
benoitc
971b3199a7 0.6.1 release. fixes. 2010-02-24 00:05:17 +01:00
benoitc
3ee23d74fd unblock SIGCHLD 2010-02-23 21:19:34 +01:00
benoitc
dba55760eb yupo spotted by @jbergstroem on irc. 2010-02-23 16:20:24 +01:00
benoitc
756d74ed0d fix config path and make sure we can use it in django admin command too 2010-02-23 15:39:18 +01:00
benoitc
3ba5df758e only handle signals we need. fix issue spotted by @jbergstroem 2010-02-22 23:48:53 +01:00
benoitc
85c773098c s/app_name/proc_name. Update faq to say that you can set the
process_name in conf.
2010-02-22 19:15:48 +01:00
benoitc
5ff4b30c28 bump to 0.6 2010-02-22 19:07:20 +01:00
benoitc
aea5133183 no cookie for me. but let me the coffee 2010-02-22 18:33:34 +01:00
benoitc
dbc07e669f "applicationi name" -> "processus name" 2010-02-22 18:26:12 +01:00
benoitc
9c562e27b1 update version 2010-02-22 17:49:12 +01:00
benoitc
47f755df9d SERVER_PORT should be a string. spotted by lericson on irc. while i'm
here fix tcp bind
2010-02-22 17:02:25 +01:00
benoitc
386fbd6e13 fix umask so we use it only when creating socket. 2010-02-22 16:52:32 +01:00
benoitc
ab4af5abc4 useless now. spotted by @jberstroem on irc. thanks! 2010-02-22 16:36:45 +01:00
benoitc
5afec8d726 add setproctitle support. -n allow to customize the name. by default
it's the arg passed to command line for wsgi app, module.settings for
djang and ini file path for paster
2010-02-22 16:29:35 +01:00
benoitc
6c12f313e3 on irc jbergstroem noticed that gunicorn behavior is different than
nginx one in the way it manages processes uid/gid. Only nginx workers
get uid/gid and master if launch as root stay root. This patch give ti
gunicorn the same behavior.
2010-02-22 14:20:06 +01:00
benoitc
71a9a1efeb convert umask in one place 2010-02-21 16:43:19 +01:00
benoitc
c47bd5ef2c bump 2010-02-21 15:11:48 +01:00
benoitc
6bddc03db6 default umask 2010-02-21 13:58:26 +01:00
benoitc
c40697879c umask everywhere 2010-02-21 12:22:12 +01:00
benoitc
54c8444285 umask should be an octal 2010-02-21 11:59:00 +01:00
benoitc
40514ca2eb versions of python < 2.6.2 don't manage unsigned int for groups like on osx or fedora
s Please enter the commit message for your changes. Lines starting
2010-02-21 11:06:43 +01:00
Paul J. Davis
b995b5a672 REUSEADDR needs to be set before bind()'ing. 2010-02-20 16:39:49 -05:00
benoitc
7879739500 typo 2010-02-20 15:26:51 +01:00
benoitc
caba92d937 split only once 2010-02-18 11:56:41 +01:00
benoitc
ad1bd6d313 80 column 2010-02-18 11:51:31 +01:00
benoitc
c557ecc93b the way to get full path is "SCHEME://SERVER_NAME:SERVER_PORT" +
SCRIPT_NAME + PATH_INFO
2010-02-18 11:31:24 +01:00
benoitc
7ca593ace7 by default SCRIPT_name is an empy string. Value could be changed by
passing SCRIPT_NAME in environment (apache way) or as an HTTP header
(nginx way).
2010-02-18 11:15:28 +01:00
benoitc
375298e913 don't print 2010-02-18 10:12:27 +01:00
benoitc
2090bc1a04 prefix worker tmpfile and make sure we delete them when closing the
worker
2010-02-18 10:09:05 +01:00
benoitc
e47f470a38 fix wsgi_multiprocess setting 2010-02-18 01:30:48 +01:00
Benoit Chesneau
ba8174626e speed remote and server address parsing 2010-02-18 01:23:39 +01:00
Benoit Chesneau
56e1d90ab6 close tmp in the right place. 2010-02-17 13:32:43 +01:00
Benoit Chesneau
ea59668787 fix debug in paster entry point 2010-02-17 11:07:57 +01:00