Ben Darnell
eea63fc20d
Document the use of self.xsrf_token to set the cookie for ajax-only apps.
...
Closes #645 .
2012-12-01 21:27:52 -05:00
Ben Darnell
e4ebf8be14
Add a mock.patch-compatible wrapper for options objects.
2012-12-01 15:50:40 -05:00
Ben Darnell
8c5ad60da3
Doc cleanups.
...
* Fix doc generation for httpclient.py (unescaped \r\n)
* Manually specify signature of Template constructor
* Include IOLoop.time
Closes #644 .
2012-11-26 21:47:15 -05:00
Ben Darnell
12c4e9ff21
ErrorHandler no longer requires XSRF tokens.
...
Closes #638 .
2012-11-25 12:01:14 -05:00
Ben Darnell
d6f583fca7
Add protocol kwarg to HTTPServer constructor.
2012-11-25 11:38:25 -05:00
Ben Darnell
5f4d98c457
Accept Content-Length headers in 304 responses.
...
Closes #639 .
2012-11-25 11:26:13 -05:00
Ben Darnell
6683077aec
Remove now-redundant entries from next.rst, bump version to 2.4.post2.
2012-11-24 22:28:13 -05:00
Ben Darnell
307c523735
Merge branch 'branch2.4'
...
Conflicts:
setup.py
tornado/__init__.py
tornado/test/auth_test.py
website/sphinx/releases.rst
2012-11-24 21:54:18 -05:00
Ben Darnell
169ac4ef49
Bump version to 2.4.1, update release notes.
2012-11-24 21:24:44 -05:00
Ben Darnell
1a5b337552
Allow default HTTPRequest attributes to be set globally via configure.
...
Closes #379 .
2012-11-18 19:48:02 -05:00
Ben Darnell
d42de2d0ac
Merge branch 'branch2.4'
...
Conflicts:
website/sphinx/database.rst
2012-11-18 16:24:49 -05:00
Ben Darnell
488c0d2739
Upgrade appengine website to python 2.7.
2012-11-18 16:19:33 -05:00
Ben Darnell
05e0a38698
Update app engine id for HRD migration.
2012-11-18 16:09:45 -05:00
Ben Darnell
f5d4a92e66
Document the deprecation of tornado.database in the 2.4 branch.
2012-11-18 15:27:22 -05:00
Ben Darnell
65d27e5a04
Make header_callback behavior consistent across both HTTP clients.
...
SimpleAsyncHTTPClient now sends the first and last lines to the callback,
matching CurlAsyncHTTPClient's behavior.
All secondary callbacks are now wrapped for stack_context.
Closes #637 .
2012-11-18 12:25:13 -05:00
Ben Darnell
3f5e658998
Fix If-None-Match support for StaticFileHandler.
...
No longer set Cache-Control: public on static files; redbot.org says
it generally doesn't do anything useful.
2012-11-17 23:37:42 -05:00
Ben Darnell
e7485f858c
Fix TwitterMixin on Python 3.
...
Also add tests, and add get_auth_http_client method to all auth mixins.
Closes #634 .
2012-11-17 15:15:31 -05:00
Ben Darnell
b71650ffed
Fix a bug with IOStream.read_until_close with a streaming_callback.
...
If the underlying socket was already closed the buffered data
would be passed to the final callback rather than the streaming callback.
2012-11-08 23:29:45 -05:00
Ben Darnell
958301dd96
Release notes for 302/303 change.
2012-11-01 10:23:27 -07:00
Ben Darnell
81475d5172
AsyncHTTPTestCase no longer closes AsyncHTTPClients on the global IOLoop.
...
Code that uses the global IOLoop may retain a global reference to
an AsyncHTTPClient as well, which would become inoperable after a test
had closed it.
2012-10-29 22:33:54 -07:00
Ben Darnell
3654790fcb
Implement TwistedIOLoop, to bridge the gap with Twisted in the other direction.
...
This also serves as a proof of concept for the refactored IOLoop interface.
2012-10-07 16:11:43 -07:00
Ben Darnell
4afeef8e3a
Remove the method IOLoop.running.
2012-10-07 16:11:18 -07:00
Ben Darnell
50e0a97fb0
Avoid creating multiple redundant autoreload callbacks.
2012-10-05 22:09:07 -07:00
Ben Darnell
c59086221b
Add tests and release notes for {% apply %} unicode fix.
2012-10-04 21:14:41 -07:00
Ben Darnell
7c34eecaa6
Fix typo in release notes (thanks jparise!))
2012-10-04 21:01:56 -07:00
Ben Darnell
3258726fea
Reduce log spam from closed client connections.
...
Added a bunch of tests for keepalive functionality and fixed two cases
where we'd log an exception when the client was gone. ECONNRESET
errors in IOStream reads now just close the connection instead of
logging an error (the exception information is still available on
stream.error in the close callback for apps that want it).
HTTPConnection now also checks for a closed connection and cleans up
instead of logging an error.
IOStream now raises a new exception class StreamClosedError instead of
IOError.
2012-10-03 23:46:13 -07:00
Ben Darnell
20deb5ca61
Add time_func parameter to IOLoop, and make it possible to use time.monotonic.
...
This means that calls to IOLoop.add_timeout that pass a number must be
updated to use IOLoop.time instead of time.time.
There are still some places where we use time.time in the code, but they
are either places where wall time is desired, or non-critical deltas (e.g.
printing elapsed time at the end of a request).
Thanks to apenwarr and mgenti for pull requests and discussion relating to
this change. (#558 and #583 )
2012-10-01 00:07:28 -07:00
Ben Darnell
469e227402
IOLoop poller implementations are now subclasses of IOLoop.
...
Update testing command-line flags to allow configuration of a non-default
IOLoop.
2012-09-30 23:07:51 -07:00
Ben Darnell
13a62380b0
AsyncHTTPClient: remove legacy magic around max_clients arg.
...
Fix a bug in which configured kwargs would be applied to a non-configured
class.
2012-09-30 19:10:16 -07:00
Ben Darnell
9a04c2b6d3
OptionParser now contains a dict rather than subclassing dict.
2012-09-30 16:13:49 -07:00
Ben Darnell
2aab06ba1a
Doc updates for the options module
2012-09-30 16:06:21 -07:00
Ben Darnell
9229d59c09
Rename _Options to OptionParser, and fix bugs with --help
2012-09-30 15:44:45 -07:00
Ben Darnell
f61352c87f
Add per-option callbacks, and implement --help with them.
2012-09-30 15:33:06 -07:00
Ben Darnell
fc6f1d5e6b
Introduce parse callbacks in the options module.
...
This is a generalization of the existing magic for logging. Logging
configuration is now moved to log.py.
2012-09-30 15:13:23 -07:00
Ben Darnell
03b00ae4a8
Doc coverage updates
2012-09-29 16:57:04 -07:00
Ben Darnell
5f5aae9d57
Release notes for futures branch merge.
2012-09-29 16:49:42 -07:00
Ben Darnell
58bc5d347b
Release notes for stack_context changes
2012-09-29 16:20:51 -07:00
Ben Darnell
98177912dc
Release note updates
2012-09-29 13:16:23 -07:00
Ben Darnell
0eb16fc542
Release notes.
2012-09-16 19:53:32 -07:00
Ben Darnell
6449189d4e
Add PipeIOStream
2012-09-16 17:13:53 -07:00
Ben Darnell
e88f02efe0
Split IOStream into BaseIOStream and IOStream.
...
IOStream the socket-specific code; BaseIOStream will be the basis
for non-socket-based streams (i.e. pipes)
2012-09-16 16:58:48 -07:00
Ben Darnell
186e947112
Remove tornado.database, which is now distributed separately.
2012-09-16 14:02:49 -07:00
Ben Darnell
95414238f3
Replace get_unused_port with bind_unused_port, which binds to port 0
...
to allow the OS to select a port for us.
Closes #590 .
2012-09-10 09:53:08 -07:00
Ben Darnell
070e08a28c
Keep empty arguments in WSGI mode too.
...
Add another test and release notes.
2012-09-09 21:04:58 -07:00
Ben Darnell
6c0ee8d74c
Add additional command-line arguments to tornado.testing.main
2012-09-09 18:55:47 -07:00
Ben Darnell
dd3b0c2ccf
Document the logging changes
2012-09-09 18:43:52 -07:00
Ben Darnell
188195835c
Start new release notes
2012-09-08 12:49:22 -07:00
Ben Darnell
648bebf0ee
Final 2.4 release notes
2012-09-03 22:09:29 -07:00
Taylor Hughes
764b443baa
Make it obvious to anyone reading copy-pasted example code that the cookie secret is not suitable for production use.
2012-08-31 23:46:56 -07:00
Ben Darnell
38077c5e57
Add link to new settings docs in release notes
2012-08-28 13:43:13 -04:00