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
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
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
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
Ben Darnell
38077c5e57
Add link to new settings docs in release notes
2012-08-28 13:43:13 -04:00
Ben Darnell
a2e746c0f9
Organize next-release notes.
2012-08-27 19:18:38 -04:00
Ben Darnell
5eb9821e68
Fill in missing docs and other minor doc updates.
2012-08-27 17:57:08 -04:00
Ben Darnell
84df7ad428
Release note updates
2012-08-27 10:43:13 -07:00
Ben Darnell
8dc3a5d476
Release note updates
2012-08-24 20:26:46 -07:00
Ben Darnell
0b432be307
Use https for all links to github.
...
Github redirects everything to https anyway, so the links might as well
start out secure.
2012-06-03 17:37:36 -07:00
Ben Darnell
be957adf54
Final 2.3 release notes
2012-05-31 21:39:07 -07:00
Ben Darnell
0219bd5e1b
Doc updates
2012-05-27 20:41:48 -07:00
Ben Darnell
c11efb48c4
Release note updates
2012-05-27 20:16:42 -07:00
Ben Darnell
1be0cc4c2c
Release note updates
2012-05-20 17:06:03 -07:00
Ben Darnell
2a1601fd4b
Update next release notes
2012-05-06 22:59:56 -07:00
Ben Darnell
29f98d0768
Remove python 3 colored logging fix from next release notes since it
...
went out in 2.2.1.
2012-04-23 22:41:11 -07:00
Ben Darnell
3df46ee312
Merge branch 'branch2.2'
...
Conflicts:
setup.py
tornado/__init__.py
tornado/test/web_test.py
tox.ini
website/sphinx/releases.rst
2012-04-23 22:34:42 -07:00
Ben Darnell
c135c368de
Release notes for 2.2.1
2012-04-23 22:03:17 -07:00
Ben Darnell
2ff579a65c
Release note updates
2012-03-25 17:22:33 -07:00
Ben Darnell
3b181f545a
Revert "Remove optional setuptools import."
...
This reverts commit 50b28c5d7a
.
Turns out we do need setuptools in at least one situation:
distutils chokes if there are broken symlinks anywhere in the source
tree, but in testing with a VM there may be "broken" symlinks that point
outside the directory shared with the VM.
2012-02-20 00:42:21 -08:00
Ben Darnell
530731cc8d
Fix the Host header when using basic auth credentials in the URL.
2012-02-19 22:17:45 -08:00
Ben Darnell
0f30e15036
Release note updates for the last wave of merges
2012-02-19 21:57:52 -08:00
Ben Darnell
ceabffe26c
Test for https://github.com/facebook/tornado/pull/454
2012-02-19 20:08:26 -08:00
Ben Darnell
56ec1ee597
Pass parsed hostname around explictly instead of storing it on the urlsplit result.
...
In some versions of python (including 2.5 and 3.2 but not 2.6 or 2.7),
urlsplit results use __slots__ and therefore don't allow artibrary attributes
to be set.
Also move the storing of the parsed hostname above hostname_mapping,
since the cert should be checked against the requested url, not the remapped
one.
Closes #448 .
2012-02-19 19:33:08 -08:00