341 Commits

Author SHA1 Message Date
benoitc
5f11fd024b remove the worker id. just use pid as ref. 2010-03-01 09:11:39 +01:00
benoitc
6deeeecc80 clean the code 2010-03-01 08:57:46 +01:00
benoitc
49c02c8c4c fix chunked encoding. It's ok now but we need unitests 2010-03-01 01:03:24 +01:00
benoitc
19a4a081a2 we want to go to last position. 2010-03-01 00:25:25 +01:00
benoitc
0629f011e8 r should be here anyway... 2010-02-28 22:55:37 +01:00
benoitc
ea02c5e073 this seems to fix problem with upload. Tested with the django app 2010-02-28 22:46:35 +01:00
benoitc
d50420848e add simple upload form test by adding its management in django ex 2010-02-28 22:46:35 +01:00
benoitc
c2f12a4977 should fix _ensure_length in tee. while I'm here fix chunked response. 2010-02-28 22:46:35 +01:00
benoitc
29fd1cf48f empty line 2010-02-28 22:46:35 +01:00
benoitc
d92364af71 new read_partial function. We also now use buffer in parser. 2010-02-28 22:46:35 +01:00
benoitc
05d4673972 just make sure we write at the end everywhere 2010-02-28 14:59:54 +01:00
benoitc
d1011ff301 fix indent in parser.body_eof 2010-02-28 00:59:03 +01:00
benoitc
86736e448d help report, bump version in trunk. 2010-02-27 23:37:54 +01:00
benoitc
7cc365305d revert this patch since it cause more problem than it solves. 2010-02-27 23:02:15 +01:00
benoitc
52978cb16f we want to flush here too. 2010-02-27 18:23:53 +01:00
benoitc
2348fc238d seek after we sync 2010-02-27 18:04:04 +01:00
benoitc
87d3c4b3e7 make sure we write at the end. fix 002-test-request.test_011 . spotted
by jbergstroem on irc. thanks!
2010-02-27 18:01:05 +01:00
benoitc
49d340ce2b fix import 2010-02-27 17:32:05 +01:00
benoitc
cb706ea818 give me some coffee please 2010-02-27 15:55:36 +01:00
benoitc
ccedd37235 s/sock/util spotted by jbergstroem on irc 2010-02-27 15:51:20 +01:00
benoitc
2b556bb830 make it more compliant with the spec 2010-02-27 15:21:36 +01:00
Paul J. Davis
50e8355c10 Swap slashes for hyphen.
Thanks for the suggestion by asenchi.
2010-02-27 01:28:51 -05:00
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
Paul J. Davis
708639c8f0 Minor grammar change. 2010-02-24 10:32:12 -05:00
Paul J. Davis
d00367e1b6 Fix capitalization. 2010-02-24 10:30:06 -05: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
c43a2fbfd0 s/TTOUT/TTOU in faq. spotted by coulix_greg on irc 2010-02-23 15:40:26 +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
ad35646ad2 center #actions a little more 2010-02-22 22:00:07 +01:00
benoitc
de2560e0f8 fix font-size in pre under firefox 2010-02-22 21:44:19 +01:00
benoitc
1a7b19fe58 typo. thanks 2010-02-22 19:54:46 +01:00