Commit Graph

1089 Commits

Author SHA1 Message Date
Alek Storm 4965811fbc Timeouts in SimpleAsyncHTTPClient now raise HTTPError
Previously, they ran the callbacks themselves.
2012-06-03 15:14:55 -04:00
Ben Darnell 13598908a7 Set version number to 2.3 2012-05-31 21:39:21 -07:00
Ben Darnell be957adf54 Final 2.3 release notes 2012-05-31 21:39:07 -07:00
bdarnell 2321542ca2 Merge pull request #521 from yoinc/master
Restore context for all read methods
2012-05-31 10:46:42 -07:00
Eden Li 4c19333132 Restore context for all read methods.
Prior to 2db0aceb32 this was being done
properly, but the refactor removed stack_context.wrap causing some issues
in our upstream context managers.
2012-05-30 17:35:36 -07:00
Ben Darnell 5cd350ace0 Set version number to 2.3rc1 2012-05-27 22:10:03 -07:00
Ben Darnell a358a73547 Quick hack to make this test pass on cygwin 2012-05-27 22:09:47 -07:00
Ben Darnell 67d69340a2 Fix zope.interface/py25 dependencies for other tox.ini files 2012-05-27 21:35:27 -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 af7fb0806d Remove unused variables 2012-05-27 20:11:52 -07:00
Ben Darnell 085f1f19a2 Add future import to this new file for consistency 2012-05-27 20:08:46 -07:00
Ben Darnell dd9a8ac18c Another round of minor whitespace cleanups from autopep8 2012-05-27 20:07:56 -07:00
Ben Darnell 5e514195b1 Remove use of string exceptions in gen_test.
These lines are not reached, but if they were they would fail with
a less clear message than intended.

Closes #520.
2012-05-27 18:37:10 -07:00
Ben Darnell 9118028671 Connection errors can happen here too. 2012-05-27 15:09:52 -07:00
Ben Darnell 330941924b IOStreams now save the exception object that caused them to close.
Closes #494.
2012-05-27 15:04:03 -07:00
Ben Darnell e5d5d3241f Delay check for socket.family (and make it jython-friendly).
Now HTTPConnection.address will always be the socket address,
and the fake "0.0.0.0" IP is only used in contexts that want an IP
(i.e. HTTPRequest.remote_ip) but the connection is a non-IP socket.
2012-05-26 11:35:42 -07:00
bdarnell 7d4623bcca Merge pull request #514 from ahassany/fix-connectin-check
Better connection check in RequestHandler
2012-05-26 11:22:52 -07:00
Ben Darnell 3dcf497f5a Extract constant, add comments 2012-05-26 11:05:16 -07:00
Ben Darnell 227becd6d1 Merge remote-tracking branch 'ei-grad/master' 2012-05-26 10:56:17 -07:00
Ben Darnell f41306da0f Override dict.copy in HTTPHeaders to return the correct type.
Closes #519.
2012-05-26 10:55:06 -07:00
Andrew Grigorev b8e4466146 Split large chunks of data in IOStream.write.
Closes #515.
2012-05-25 19:09:59 +04:00
Ahmed El-Hassany b6ea32d35d Better connection check in RequestHandler 2012-05-24 13:23:34 -04:00
Ben Darnell e101397b36 Ignore any data after the final multipart boundary.
Closes #489.
2012-05-20 23:03:53 -07:00
Ben Darnell 57a3f83fc6 Prevent leak of StackContexts in repeated gen.engine functions.
Internally, StackContexts now return a deactivation callback,
which can be used to prevent that StackContext from propagating
further.  This is used in gen.engine because the decorator doesn't know
which arguments are callbacks that need to be wrapped outside of its
ExceptionStackContext.  This is deliberately undocumented for now.

Closes #507.
2012-05-20 22:08:59 -07:00
Ben Darnell 1be0cc4c2c Release note updates 2012-05-20 17:06:03 -07:00
Ben Darnell 4c6f1137f1 Fix docstring formatting 2012-05-20 16:57:36 -07:00
Ben Darnell e4ee4709db Merge remote-tracking branch 'jjwchoy/master'
Modified linkify to accept a callable for extra_params.

Closes #506.
2012-05-20 16:54:16 -07:00
Ben Darnell b1df663587 304 responses no longer include entity headers like Content-Length
This is required by the RFC as it may confuse caches.
2012-05-20 16:51:02 -07:00
Ben Darnell dd7655964a Add status_code to the OutputTransform.transform_first_chunk interface.
This is needed for correct support of the 304 status code, which
has no body and should not have either a Content-Length or
Transfer-Encoding.  This is a backwards-incompatible change to an
interface that was never technically private, but not included in the
documentation and as far as I can tell was never used outside
tornado itself.
2012-05-20 16:27:28 -07:00
Ben Darnell 53452e8d5a Fight bitrot in tornado.platform.twisted.
A new release of zope.interface breaks things on python 2.5, and
sets off our (overly-sensitive?) deprecation checking.
2012-05-19 14:22:03 -07:00
Ben Darnell f618c2f6d2 Ignore .class files (create by jython) 2012-05-12 10:12:44 -07:00
Ben Darnell d79458151c Move tornado.platform.windows.Waker to new module platform.common.
Cleaned up the few windows-specific bits of code.  The socket-based
Waker is also usable on Jython.
2012-05-12 10:12:38 -07:00
Ben Darnell a9443b7fdc Replace all occurrences of 3-argument raise statements with the
version from testing.py, which works better with 2to3.

Closes #508
2012-05-10 23:26:34 -07:00
Ben Darnell 25f4990043 Fix path parsing in HTTPServer.
urlparse.urlsplit expects a full url, but we were using it for a bare path.
This mostly worked but would parse paths beginning with "//" incorrectly.
Fortunately all we really need to do is split the path on "?".

Closes #509.
2012-05-09 21:57:44 -07:00
Jason Choy 783d76cbfc Test strip and add space still works when extra_params is a callable 2012-05-08 10:24:46 +01:00
Jason Choy 4fd35b8c34 Added a test case for extra_params as a callable 2012-05-08 10:15:24 +01:00
Ben Darnell 28590fce12 Fix handling of non-ascii data in reverse_url.
Closes #490.
2012-05-07 00:18:55 -07:00
Ben Darnell 2a1601fd4b Update next release notes 2012-05-06 22:59:56 -07:00
Ben Darnell a548ab670b Refactor tornado.options to make it testable.
Now most code is in methods of the _Options class, and it is possible
to create isolated instances of that class.  The test is pretty
rudimentary, but it's a start.
2012-05-06 22:46:53 -07:00
bdarnell 625c6e052f Merge pull request #498 from mckoss/feature/set-option
fix bug setting options programatically
2012-05-06 21:43:25 -07:00
bdarnell de3cf92a96 Merge pull request #484 from vadimg/master
make commandline args override config file args when multiple=True
2012-05-06 21:36:39 -07:00
Ben Darnell fde872df39 Merge remote-tracking branch 'mckoss/feature/pretty-help' into merge 2012-05-06 21:10:05 -07:00
Ben Darnell 62ff417c19 Fix test on python 3 2012-05-06 18:39:57 -07:00
Ben Darnell 91ea775747 Merge remote-tracking branch 'screeley/master'
Conflicts:
	tornado/simple_httpclient.py
2012-05-06 18:30:16 -07:00
Ben Darnell 6dbce93998 Fix bug when max_clients kwarg is passed to AsyncHTTPClient.configure.
Closes #493.
2012-05-06 18:26:54 -07:00
Ben Darnell 9ef20e3fae Make autoreload a little more robust against weird import failures 2012-05-06 18:09:51 -07:00
bdarnell 8f44acda38 Merge pull request #497 from polymorphm/master
tornado.ioloop.IOLoop.instance() should be threadsafe
2012-05-06 17:41:29 -07:00
Ben Darnell f5012b423f Document and test for type differences between get_cookie and get_secure_cookie.
Closes #501.
2012-05-06 17:29:02 -07:00
Ben Darnell 088f0c14cd Expand path encoding test to cover issues raised by pull request 505
(unicode in URLSpecs).
2012-05-06 16:46:28 -07:00