Ben Darnell
2fdfcb1b19
Rewrite chatdemo to use a coroutine instead of callbacks.
2014-07-05 17:55:44 -04:00
Ben Darnell
3824b4c80b
Drop support for the draft76 version of WebSockets.
...
Browsers that only support draft76 are now less common than those
that do not support websockets at all, so applications should
use their non-websocket workarounds for these browsers.
2014-06-21 14:06:59 -04:00
Ben Darnell
7a0eda1338
Remove async_callback wrapper functions, which have been obsolete since 1.1.
...
Closes #283 .
2014-06-15 11:52:34 -04:00
Ben Darnell
500a605534
Merge branch 'master' into http_refactor
...
Conflicts:
tornado/iostream.py
2014-04-26 20:32:10 -04:00
Ben Darnell
e239a8a736
Use add_callback_from_signal in benchmark.py's sigchld handler.
...
This would manifest as an occasional deadlock when an 'ab' process
finished.
2014-04-19 18:51:36 -04:00
Kouki Saito
73c8c218c5
Delete description for cookie capacity
2014-04-09 19:31:27 +09:00
shinriyo
142b5fb92f
tab to space
...
tab to space and indent fix
2014-03-26 10:04:07 +09:00
Ben Darnell
6c7eac6c83
Unify WSGI support with the HTTPConnection abstraction.
...
Deprecate WSGIApplication in favor of a WSGIAdapter that can wrap
an ordinary Application.
Remove the wsgi module's separate HTTPRequest variant and tornado.web's
wsgi special cases.
2014-03-15 22:30:23 -04:00
Ben Darnell
b1482368b1
Add a benchmark for coroutine processing.
2014-01-25 21:55:39 -05:00
Ben Darnell
c9af9a7224
Remove redundant uses of @asynchronous with @gen.coroutine.
2014-01-02 20:51:59 -05:00
Ben Darnell
9298756eec
Add a simple end-to-end demo of TwitterMixin.
2013-05-31 21:46:53 -04:00
Ben Darnell
c7bc4b6188
Add a stack_context benchmark.
2013-05-26 14:15:12 -04:00
Ozan Yerli
449652b603
Unnecessary MozWebSocket in the WebSocket demo
...
WebSocket is implemented in all modern web browsers.
2013-04-21 21:30:23 +03:00
Ben Darnell
74c6075d58
Fix escaping error in blog demo
...
Closes #726 .
2013-04-13 16:40:23 -04:00
Ben Darnell
d02b031bc9
Add an ioloop command line flag to the benchmark script.
2013-04-07 13:07:23 -04:00
Ben Darnell
8ddc760f18
Fix draft76 websocket protocol; fix websocket demo for python 3.
2013-03-18 20:52:23 -04:00
Ben Darnell
813f89cf48
Convert auth demo to coroutines.
2013-03-16 19:12:20 -04:00
Ben Darnell
974c229c8b
Update chat demo to be more exemplary.
...
Use gen.coroutine in auth handler (but not in wait_for_messages
because it makes things less clear and we don't have good cancellation
support). No more mixin. Python 3 compatible.
2013-03-16 00:52:04 -04:00
Ben Darnell
bc4917b65b
Use autoescape in websocket chat demo.
2013-03-03 12:23:28 -05:00
Ben Darnell
5c7d6d3edc
Autoescaping is now the default, so remove the explicit setting in chatdemo.
2013-03-03 12:18:34 -05:00
Ben Darnell
920f96db6b
Use distinct cookie names across all the demo apps.
2013-03-03 12:16:03 -05:00
Ben Darnell
17ec459c85
Use autoescape in blog demo.
2013-03-03 12:09:29 -05:00
Ben Darnell
9876ede0f2
Remove embedded copy of markdown.py from blog demo.
2013-03-03 11:56:47 -05:00
Ben Darnell
f220182aa9
Use autoescape in appengine blog demo.
2013-03-03 11:54:35 -05:00
Ben Darnell
19f7351d14
Remove markdown support from app engine blog demo.
2013-03-03 11:16:07 -05:00
Ben Darnell
b00167b9d6
Modernize app engine demo: py27, non-CGI interface, get_template_namespace.
2013-03-03 11:08:25 -05:00
Michael Leonhard
56fcc364f7
Fix s3server.py to stop truncating downloads of images and other non-text files
2013-01-20 16:48:05 -08:00
Ben Darnell
186e947112
Remove tornado.database, which is now distributed separately.
2012-09-16 14:02:49 -07:00
Taylor Hughes
35b432fee2
Make it obvious to anyone reading copy-pasted example code that the cookie secret is not suitable for production use.
2012-08-31 23:47:11 -07:00
Ben Darnell
4386f1b088
Make authdemo's logout less confusing.
...
Closes #376 .
2012-08-26 16:27:24 -07:00
Ben Darnell
1b38b58da8
Update websocket chat demo to work when not addressed as localhost.
...
Turn on draft76 support.
2012-01-21 17:39:37 -08:00
Ben Darnell
7f5d4de759
Avoid merging the entire read buffer for IOStream.read_until.
...
Among other things, this dramatically speeds up downloads of large
chunked files over a fast network with SimpleHTTPClient.
Fixes #425 .
2011-12-30 16:19:49 -08:00
Ben Darnell
1b5adf99e4
Add on_connection_close hook to chat demo to clean up after closed connections.
...
Closes #354 .
2011-09-08 22:51:45 -07:00
Ben Darnell
8c3e46c491
Add option to print out generated template code in benchmark
2011-07-27 22:09:49 -07:00
Ben Darnell
3a7e30896b
Add a template benchmark, based on one in jinja2
2011-07-27 22:01:05 -07:00
Ben Darnell
c91df19763
Make websocket demo work on firefox 6 beta
2011-07-17 15:01:07 -07:00
Ben Darnell
845950af7d
Better benchmark script
2011-07-06 19:14:59 -07:00
Ben Darnell
26feb663aa
BACKWARDS-INCOMPATIBLE: turn on template autoescaping by default.
...
Disable autoescaping in demos that don't already use it.
2011-06-11 17:22:09 -07:00
Ben Darnell
696d9785a6
Demote s3server.py to a demo
2011-06-11 12:19:13 -07:00
Ben Darnell
bc0ac36775
Remove dead code
2011-06-05 16:20:37 -07:00
Ben Darnell
cdc1dbf589
Remove unused imports, add a few missing ones
2011-06-05 16:11:05 -07:00
Ben Darnell
5664bf0781
Add a Template UIModule, allowing templates to be called with keyword
...
arguments instead of inheriting the caller's namespace with {% include %}.
2011-06-05 15:41:25 -07:00
Ben Darnell
ce3e1dedaf
Introduce {% module %} syntax for calling UIModules.
...
Add linkify and xsrf_form_html as default modules.
2011-06-05 13:47:02 -07:00
Ben Darnell
6a85be4577
Add autoescape application setting and convert chatdemo to use it.
2011-05-30 19:03:54 -07:00
Ben Darnell
cad4a30879
Add simple test application for websockets
2011-05-17 23:14:02 -07:00
Ben Darnell
a287c203f1
Add keepalive support to benchmark, add other command-line args
2011-05-14 22:53:29 -07:00
Ben Darnell
e805590e69
Better check for missing messages in facebook demo
2011-04-24 23:16:31 -07:00
Ben Darnell
cd94d92b9b
Check to see if actions field is present in facebook demo
...
Closes #251 .
2011-04-24 23:15:08 -07:00
Ben Darnell
f43dd1414a
Update facebook demo to use the graph api instead of the older api.
2011-03-03 13:45:58 -08:00
Ben Darnell
e7ee4e1f73
Add logout link to authdemo for testing purposes.
2011-02-19 13:33:21 -08:00