635 Commits

Author SHA1 Message Date
benoitc
ebca25dddb make sure conf is available when spawning workers. Also since run
already manage_workers, no need to run this function in reload.
2010-06-16 11:38:35 +02:00
benoitc
d5b76ac651 socket.from_fd return a _socket.socket object instead of socket.socket
(at least on py26). Instead of testing type of instance, just test if
the source has a "recv" method. Fix bug in usr2 with new parser.
2010-06-16 11:30:36 +02:00
benoitc
05b6281e8d new HUP signal handling. Rather than reexecuting the app it mimic NGINX
behavior :

Configuration reload
Start the new worker processes with a new configuration
Gracefully shutdown the old worker processes

To reload gunicorn code use USR2 signal.
2010-06-16 11:10:06 +02:00
Paul Davis
645938f2b9 Fix gevent2 worker shutdown. 2010-06-10 16:38:45 -04:00
benoitc
764d81b742 don't display logs. fix from @davisp. 2010-06-10 22:32:15 +02:00
benoitc
36706c208f make sure WSGIHandler don't log 2010-06-10 22:23:31 +02:00
benoitc
77a8cb66e6 there's still a bug upstream about dns patching so don't patch it for
now.
2010-06-10 22:10:22 +02:00
benoitc
5ea58c1af2 pool! 2010-06-10 21:44:43 +02:00
benoitc
ff5adc46a4 setblocking(1) 2010-06-10 21:25:29 +02:00
benoitc
43d0bcbbd3 typo 2010-06-10 21:23:48 +02:00
benoitc
09c3310e21 Use gevent.wsgi 2010-06-10 21:22:06 +02:00
benoitc
c239a3cd88 "main.py doesn't do anything useful anymore" spotted by @davisp 2010-06-10 17:23:38 +02:00
benoitc
5b860b532a return all the data when reading is finished in EOFReader 2010-06-09 16:07:38 +02:00
benoitc
c52e30bcef fix content length. Test iff size == 0 before we start the loop. 2010-06-09 09:12:27 +02:00
Paul J. Davis
0beb39412d Remember to remove debug logging. 2010-06-07 20:47:44 -04:00
Paul J. Davis
37e909767a Refactored sizing in body readers. 2010-06-07 20:46:01 -04:00
benoitc
c55d367317 fix django app logging when daemonized 2010-06-07 21:05:46 +02:00
benoitc
e3d0056d18 GitHub typo 2010-06-06 16:00:41 +02:00
Paul J. Davis
ca920cf292 Remove traces of OCD. 2010-06-06 01:16:51 -04:00
Paul J. Davis
bb0f47f4c8 Updated logo SVG with xav's new version. 2010-06-06 01:12:13 -04:00
Paul J. Davis
ad8dce7b09 Fix logo font. 2010-06-06 01:12:13 -04:00
Paul J. Davis
d9e5b48053 Make sure it says Python on the front page. 2010-06-06 01:12:13 -04:00
Paul J. Davis
c07f2f2ff2 Making the website more pretty. 2010-06-06 01:12:13 -04:00
benoitc
7c671b72cc et logging handler after we daemonize like it was before. Solve issue
raised by timf : 26f9460e48
2010-06-05 23:15:25 +02:00
benoitc
acd8d57c9f patch all so we make sure io are patched too 2010-06-03 16:11:57 -04:00
benoitc
c4a77a7e32 fix config bug 2010-06-03 16:11:19 -04:00
Paul J. Davis
2763fe8e9f Added tests for invalid requests.
Need to flesh out more error cases.
2010-06-03 16:11:18 -04:00
Paul J. Davis
5af1273fc2 Added more valid request tests.
Found and fixed a couple read and readline related bugs.
2010-06-03 16:11:18 -04:00
benoitc
ae025cd22b put back websocket support with new http parser 2010-06-03 16:11:18 -04:00
benoitc
1ae47ef82f fix rebase 2010-06-03 16:11:18 -04:00
Paul J. Davis
27cc404f1f Imported simplehttp request tests. 2010-06-03 16:11:17 -04:00
benoitc
516adafcbe fix some errors & add headers. unitests still broken 2010-06-03 16:11:17 -04:00
Paul J. Davis
c8154ea5fd Simplify the gtornado monkey patch a bit. 2010-06-03 16:11:17 -04:00
Paul J. Davis
8ddf3e856e Fix up a couple minor bugs. 2010-06-03 16:11:16 -04:00
Paul J. Davis
0d32ab1356 Initial steps for importing simplehttp. 2010-06-03 16:11:16 -04:00
Paul J. Davis
bcaf21b62c Fix async worker integration. 2010-06-03 16:11:16 -04:00
Paul J. Davis
f02cbc10ed Playing with simplehttp. 2010-06-03 16:10:27 -04:00
benoitc
4a519f9d61 fix content length 2010-06-03 16:09:04 -04:00
benoitc
d9a2579613 naive working integration of simplehttp parser. async worker is slower
than the non async actually for unkown reason and slower than with old
parser.
2010-06-03 16:09:04 -04:00
Paul J. Davis
eb0d54e111 Added monkey patch for threading. 2010-06-02 12:16:00 -04:00
Paul Davis
08773bb654 Fix eventlet epoll error. 2010-06-01 15:26:13 -04:00
benoitc
82adcd9d61 increase toc width 2010-05-31 23:29:20 +02:00
benoitc
054c27d91b really quick enhancement to the website, waiting a better design. make
teh font bigger and increase width.
2010-05-31 23:27:28 +02:00
benoitc
68e050b052 add sitemap generation 2010-05-31 22:34:38 +02:00
Paul J. Davis
7056ab902b Setup redirects from old URLS. 2010-05-30 15:21:17 -04:00
Paul J. Davis
d26afdacc1 Move tunning parameters to the FAQ. 2010-05-30 15:05:29 -04:00
Paul J. Davis
d8e6cb1769 Rebuild after rebase. 2010-05-30 14:38:27 -04:00
Paul J. Davis
3c7d5320fa Large refactor of the documentation and website. 2010-05-30 14:36:06 -04:00
Paul J. Davis
648c246ed1 Ignore doc/.sass-cache 2010-05-30 14:31:02 -04:00
Paul J. Davis
f861a102d6 Bringing in Compass CSS. 2010-05-30 14:31:02 -04:00