Travis Cline
8e1bab434e
Moved the gevent import later as it's causing gunicorn to fail to load when using this example hook.
2010-09-13 18:10:27 +08:00
benoitc
7715199b48
it's better to test when you use the right code to do it. We had a
...
blocking operation django example (we read a file already on the fs and
recreate another which blocked async schedulers).
While I'm here ease the code of eventlet worker. Just use the convenient
eventlet.serve function which already manage what we do and revert sopme
useless changes in body and header parsing.
2010-09-02 14:55:56 +02:00
benoitc
bbe7e46695
Rails hasn't been ported to Python yet.
2010-08-31 11:26:03 +02:00
Paul J. Davis
3165b0f87f
Fix a typo in the documentation.
...
Some examples had -C instead of -c for specifying the config file. Thanks
to martync@github for the report.
Fixes #86
2010-08-30 11:54:52 -04:00
benoitc
d07009a12f
we cant to challenge worker timeout here.
2010-08-12 13:13:21 +02:00
Paul J. Davis
63b53c9f51
Exit with a non-zero status if workers don't boot.
...
Raising a HaltServer exception in the arbiter will now exit with the
provided reason and status code.
2010-08-05 23:28:25 -04:00
Paul J. Davis
1f598b9b74
Move the WebSocket to a directory so its linkable.
...
As in, link for pasting into an email.
2010-07-31 11:40:48 -04:00
benoitc
9af95b7f8d
osi.waitpid patching is broken in eventlet and prevent arbiter to exit.
...
Waiting upstream fixes, don't patch it for now.
2010-07-08 19:30:55 +02:00
benoitc
b2db9df58f
update eventlet websocket example and fix gevent one
2010-07-08 18:49:15 +02:00
Thomas Steinacher
94df88ca7c
Adapting gevent_websocket.py sample for websocket protocol 076.
2010-07-09 00:31:12 +08:00
Paul J. Davis
3ad7c1b395
Make WSGI app names are now evaled in the module namespace.
...
This allows people to pass info from the command line to a WSGI
application. See examples/alt_spec.py for code that uses this
method. Example invocation:
$ gunicorn 'alt_spec:load("my arg here")'
Notice the single quotes to avoid shell escape semantics.
Closes #56
Closes #40
2010-07-08 00:12:15 -04:00
Paul J. Davis
80f4d17122
Added an example reloader config to the examples.
...
Thanks to thomasst on GitHub for the sample.
Closes #54
2010-07-07 21:27:43 -04:00
benoitc
ae025cd22b
put back websocket support with new http parser
2010-06-03 16:11:18 -04:00
Paul J. Davis
3c7d5320fa
Large refactor of the documentation and website.
2010-05-30 14:36:06 -04:00
benoitc
aee54903a6
add memory watch example
2010-05-23 00:45:31 +02:00
Paul J. Davis
6ffbe54734
Added unit tests for new Config code.
2010-05-21 22:54:22 -04:00
Paul J. Davis
0a46d09c6e
Avoid a deadlock when the acceptor loop raises.
...
An out of file descriptors error was causing the async acceptor loops to
die. The notification process was unaffected so the workers didn't die.
Async workers hitting an error in the acceptor now kill themselves and
rely on the arbiter to restart a new worker in their stead.
2010-05-11 23:33:48 -04:00
Paul J. Davis
c515a91c4c
Fix typo spotted by Benoit
2010-05-07 19:29:47 -04:00
Paul J. Davis
6d2ee3af34
Updated config example with Benoit's suggestions.
2010-05-07 19:26:03 -04:00
Paul J. Davis
b2c45f1df4
Missing r-paren
2010-05-07 19:08:43 -04:00
Paul J. Davis
49521b81a5
Rewrote the sample config file.
...
Includes more information on each parameters and groups parameters
by area of interest.
2010-05-07 19:02:16 -04:00
benoitc
9e26203f45
eventually fix pip error
2010-04-29 10:22:39 +02:00
Paul J. Davis
57d6f1b507
Add a cherrpy example.
2010-04-22 19:21:49 +02:00
Paul J. Davis
bc64baba65
Fix example config file.
2010-04-22 19:21:49 +02:00
benoitc
8184eb493c
add refactor gevent support like we did on eventlet. In the future it
...
may be better to use Event object. While i'm here move the monkey
patching in its own function used on config so we make sure to patch
only one time and prevent some ugly hack like reinit gevent each time we
spawn (it's better to use patched os.fork from gevent once time).
2010-04-22 14:38:49 +02:00
benoitc
138605dc43
missing headers
2010-04-16 21:08:11 +02:00
Paul J. Davis
d14389cb68
Added support for Tornado.
...
Took less than a beer.
2010-04-15 21:20:52 -04:00
Paul J. Davis
898d770d14
Fixup hardcoded variables in websocket example.
2010-04-15 21:17:35 -04:00
Paul Davis
bb2f51ccda
Fixed websockets to not use a hardcoded localhost.
2010-04-15 20:38:46 -04:00
Paul J. Davis
5ebdd48eed
Provide an example dispatcher app.
...
This just sketches out a simple way to host multiple apps using a single
gunicorn daemon.
2010-04-09 18:09:29 -04:00
benoitc
8c6266866e
fix example
2010-03-26 15:19:46 +01:00
benoitc
c1aec22097
fix response
2010-03-23 21:09:15 +01:00
benoitc
514a0ba0e3
change the way we handle last chunk, on't break but instead test if last
...
was an empty string. So we allows idiot content to send empty string at
first.
2010-03-19 10:00:15 +01:00
benoitc
6845d10460
fix worker. status is a response thing. instead test if we got a status
...
line or if environ isn't empty.
2010-03-17 23:06:45 +01:00
benoitc
49e57d36bb
remove useless examples
2010-03-17 01:06:17 +01:00
benoitc
0781caadab
merge grainbows & gunicorn
2010-03-17 00:18:16 +01:00
benoitc
562c9a2d70
revert previous change
2010-03-13 23:25:29 +01:00
benoitc
d21254edfc
update readme
2010-03-13 23:21:42 +01:00
benoitc
f2adef3d35
refactor pidfile
2010-03-11 13:19:19 +01:00
benoitc
398479fb33
refactor pidfile
2010-03-11 13:14:30 +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
d92364af71
new read_partial function. We also now use buffer in parser.
2010-02-28 22:46:35 +01:00
Jannis Leidel
57369b38ba
Added example Supervisor configuration
2010-02-22 19:33:50 +01:00
Paul J. Davis
b20a0ace1e
Added wsgiref validator to the example.
2010-02-22 11:17:00 -05:00
benoitc
316e943609
Use example of doc
2010-02-20 23:18:16 +01:00
benoitc
b1bd52b510
configuration doc
2010-02-20 16:54:05 +01:00
Benoit Chesneau
26e8f153ca
shouldn't have been merged
2010-02-15 14:53:02 +01:00
Benoit Chesneau
2e170bb3ad
fix paster serve
2010-02-15 14:43:39 +01:00
jbergstroem
cb2d9203ee
No need for duplicate test(ing).py
2010-02-10 16:59:23 -05:00