Commit Graph

1076 Commits

Author SHA1 Message Date
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
bdarnell 930c945c8e Merge pull request #503 from jparise/http-patch-method
Add support for the HTTP PATCH method.
2012-05-06 15:20:46 -07:00
Casey Muller c3ed68a31d Fix setting cookies under WSGI, broken by the rename from _new_cookies to _new_cookie in 70ea7a5a6c 2012-05-06 11:18:29 -07:00
Jason Choy 53e7c751c3 Modified linkify to accept a callable for extra_params. This allows different params based for each link, for example to treat internal and external links differently 2012-05-06 13:22:40 +01:00
Jon Parise bd1fdaabd8 Add support for the HTTP PATCH method.
PATCH is a proposed standard described by RFC 5789:

    http://tools.ietf.org/html/rfc5789
2012-05-02 13:41:10 -07:00
Ben Darnell 50244877b5 Ubuntu 12.04 is out, so add a vagrant config for it.
Replace the 11.04 config, but keep 10.04 to cover the two LTS releases.
2012-04-27 20:50:01 -07:00
Mike Koss dd3ff7f89b fix bug when no help text given for option - wrap returns empty list 2012-04-27 04:16:28 -07:00
Mike Koss 47860908c5 fix bug setting options programatically 2012-04-25 17:34:26 -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 235cb17a0a Add .travis.yml file to branch2.2 just to make everything green. 2012-04-23 22:25:16 -07:00
Ben Darnell a1bb663595 Cherry-pick cc8e893 into branch2.2
Original commit message:

Revert "Run the website in python2.7 mode"

Can't use python2.7 mode without migrating to the "high-replication
datastore", and even though we don't have any data "migration" is a
pain.

This reverts commit e960e9bc9d.
2012-04-23 22:15:17 -07:00
Ben Darnell 8d7f9f014e Version number bump for 2.2.1 2012-04-23 22:04:06 -07:00
Ben Darnell c135c368de Release notes for 2.2.1 2012-04-23 22:03:17 -07:00