]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
13 years agoAdd `else` as possible sub-clause in `try` blocks in templates. 495/head
Alek Storm [Tue, 17 Apr 2012 18:55:05 +0000 (14:55 -0400)] 
Add `else` as possible sub-clause in `try` blocks in templates.

Add test case.

13 years agoMake tornado.database importable when MySQLdb is not available.
Ben Darnell [Sun, 1 Apr 2012 21:41:47 +0000 (14:41 -0700)] 
Make tornado.database importable when MySQLdb is not available.

This fixes the docs build on readthedocs.org.

Closes #485.

13 years agoRelease note updates
Ben Darnell [Mon, 26 Mar 2012 00:22:33 +0000 (17:22 -0700)] 
Release note updates

13 years agoIncrease performance of IOStream.read_until and read_until_regex.
Ben Darnell [Mon, 26 Mar 2012 00:12:00 +0000 (17:12 -0700)] 
Increase performance of IOStream.read_until and read_until_regex.

_handle_read and _try_inline_read now only call _read_from_buffer
once, after calling _read_to_buffer as many times as they can.  This
allows the progressive _double_prefix calls in _read_from_buffer to
work as efficiently as possible.

In testing with a 4MB read, performance improved by a factor of 32 (8
seconds to 0.25 seconds)

13 years agoClean up alarm signals in process_test when the test fails
Ben Darnell [Sun, 25 Mar 2012 19:37:37 +0000 (12:37 -0700)] 
Clean up alarm signals in process_test when the test fails

13 years agoAdd python 3.3 (alpha) to the tox config.
Ben Darnell [Sat, 24 Mar 2012 23:05:11 +0000 (16:05 -0700)] 
Add python 3.3 (alpha) to the tox config.

13 years agoExpand documentation for IOLoop.stop and IOLoop.close
Ben Darnell [Sat, 24 Mar 2012 22:07:26 +0000 (15:07 -0700)] 
Expand documentation for IOLoop.stop and IOLoop.close

13 years agoRename example in docs for clarity
Ben Darnell [Sat, 24 Mar 2012 21:53:06 +0000 (14:53 -0700)] 
Rename example in docs for clarity

13 years agoMerge branch 'master' of github.com:facebook/tornado
Ben Darnell [Sat, 24 Mar 2012 21:40:10 +0000 (14:40 -0700)] 
Merge branch 'master' of github.com:facebook/tornado

13 years agoMerge remote-tracking branch 'alekstorm/read_from_buffer_refactor' into merge
Ben Darnell [Sat, 24 Mar 2012 21:35:55 +0000 (14:35 -0700)] 
Merge remote-tracking branch 'alekstorm/read_from_buffer_refactor' into merge

13 years agoMerge pull request #482 from wsantos/patch-2
bdarnell [Sat, 24 Mar 2012 20:56:05 +0000 (13:56 -0700)] 
Merge pull request #482 from wsantos/patch-2

Don't try to send post_args in the url with FacebookGraphMixin

13 years agoAdd HTTPServer's type test to WSGIApplication, and fix another python3 bug.
Ben Darnell [Sat, 24 Mar 2012 20:46:06 +0000 (13:46 -0700)] 
Add HTTPServer's type test to WSGIApplication, and fix another python3 bug.

13 years agoMerge remote-tracking branch 'jsamuel/wsgi-arg-keys' into merge
Ben Darnell [Sat, 24 Mar 2012 20:23:55 +0000 (13:23 -0700)] 
Merge remote-tracking branch 'jsamuel/wsgi-arg-keys' into merge

13 years agoMerge pull request #475 from andrew-d/master
bdarnell [Sat, 24 Mar 2012 20:06:50 +0000 (13:06 -0700)] 
Merge pull request #475 from andrew-d/master

addslash / removeslash modification

13 years agoDisable twisted process tests, which don't work for me on OSX 10.6
Ben Darnell [Sat, 24 Mar 2012 19:53:58 +0000 (12:53 -0700)] 
Disable twisted process tests, which don't work for me on OSX 10.6

13 years agowe dont need post_args in url, post_args will be sended in http body. 482/head
Waldecir Loureiro dos Santos Filho [Wed, 21 Mar 2012 19:56:30 +0000 (16:56 -0300)] 
we dont need post_args in url, post_args will be sended in http body.

13 years agoFix keys in wsgi request arguments being bytes in python3 when content-type is applic... 481/head
Justin Samuel [Mon, 19 Mar 2012 22:09:23 +0000 (15:09 -0700)] 
Fix keys in wsgi request arguments being bytes in python3 when content-type is application/x-www-form-urlencoded.

13 years agoRefactor IOStream.read_from_buffer() for speed, clarity 479/head
Alek Storm [Thu, 15 Mar 2012 21:50:46 +0000 (17:50 -0400)] 
Refactor IOStream.read_from_buffer() for speed, clarity

13 years agoModified addslash & removeslash to use permanent redirect 475/head
AndrewD [Thu, 8 Mar 2012 03:15:36 +0000 (22:15 -0500)] 
Modified addslash & removeslash to use permanent redirect

13 years agoOne more autoreload path tweak: set $PYTHONPATH just before exec,
Ben Darnell [Tue, 6 Mar 2012 07:25:06 +0000 (23:25 -0800)] 
One more autoreload path tweak:  set $PYTHONPATH just before exec,
whether autoreload is __main__ or not.

13 years agoFix signal handlers clobbered by twisted tests.
Ben Darnell [Tue, 6 Mar 2012 06:25:25 +0000 (22:25 -0800)] 
Fix signal handlers clobbered by twisted tests.

The most visible effect of the bug was that test runs with autoreload
would not respond to ctrl-c.

13 years agoMove autoreload's sys.path manipulations earlier in the file, before
Ben Darnell [Tue, 21 Feb 2012 04:31:33 +0000 (20:31 -0800)] 
Move autoreload's sys.path manipulations earlier in the file, before
as many imports as possible.

This fixes an edge case discovered in a branch where I introduced
a module named tornado.concurrent.

13 years agoFix some mutable values used as default arguments.
Ben Darnell [Tue, 6 Mar 2012 05:49:41 +0000 (21:49 -0800)] 
Fix some mutable values used as default arguments.

Also fix a doc discrepancy in which HTTPResponse.headers could be
a plain dict instead of an HTTPHeaders object (for errors that returned
no headers).

13 years agoAvoid modifying the headers object passed in by the client.
Ben Darnell [Tue, 6 Mar 2012 05:38:47 +0000 (21:38 -0800)] 
Avoid modifying the headers object passed in by the client.

This fixes a problem in which the header object was reused across requests
and behavior became inconsistent when following redirects.

Closes #459.

13 years agoFix travis build for python3
Ben Darnell [Mon, 27 Feb 2012 18:15:48 +0000 (10:15 -0800)] 
Fix travis build for python3

13 years agoTry out travis-ci.org
Ben Darnell [Mon, 27 Feb 2012 18:09:46 +0000 (10:09 -0800)] 
Try out travis-ci.org

13 years agoDon't swallow exceptions that escape from TestCase.run().
Ben Darnell [Sun, 26 Feb 2012 00:50:51 +0000 (16:50 -0800)] 
Don't swallow exceptions that escape from TestCase.run().

This fixes a case in which nose would fail to report a failing test
(if the exception's str() method raised an exception).

Closes #466.

13 years agoMerge remote-tracking branch 'bergundy/master' into work
Ben Darnell [Wed, 22 Feb 2012 19:47:34 +0000 (11:47 -0800)] 
Merge remote-tracking branch 'bergundy/master' into work

13 years agoUpdate twisted test blacklist for Twisted 12.0.0
Ben Darnell [Mon, 20 Feb 2012 09:12:27 +0000 (01:12 -0800)] 
Update twisted test blacklist for Twisted 12.0.0

13 years agoRevert "Remove optional setuptools import."
Ben Darnell [Mon, 20 Feb 2012 08:40:19 +0000 (00:40 -0800)] 
Revert "Remove optional setuptools import."

This reverts commit 50b28c5d7a1ccfc3cc3a5a8fc5cf664880598fc6.

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.

13 years agoFix the Host header when using basic auth credentials in the URL.
Ben Darnell [Mon, 20 Feb 2012 06:17:45 +0000 (22:17 -0800)] 
Fix the Host header when using basic auth credentials in the URL.

13 years agoRelease note updates for the last wave of merges
Ben Darnell [Mon, 20 Feb 2012 05:57:52 +0000 (21:57 -0800)] 
Release note updates for the last wave of merges

13 years agoReturn the Etag header on 304 responses to an If-None-Match request.
Ben Darnell [Mon, 20 Feb 2012 05:47:07 +0000 (21:47 -0800)] 
Return the Etag header on 304 responses to an If-None-Match request.

13 years agoRevert "Use copy.deepcopy to clone HTTPRequest when following redirects."
Ben Darnell [Mon, 20 Feb 2012 05:37:50 +0000 (21:37 -0800)] 
Revert "Use copy.deepcopy to clone HTTPRequest when following redirects."

This reverts commit b7e604646537984e967dd25447a8df3e221bf9ed.

Something about this broke the tests.

13 years agoUse copy.deepcopy to clone HTTPRequest when following redirects.
Ben Darnell [Mon, 20 Feb 2012 05:30:15 +0000 (21:30 -0800)] 
Use copy.deepcopy to clone HTTPRequest when following redirects.

This gives each request in a redirect chain its own copy of the
headers dictionary.

Closes #459.

13 years agoIn template, use handler reverse_url instead of application one
Olivier Hardy [Mon, 6 Feb 2012 15:01:11 +0000 (16:01 +0100)] 
In template, use handler reverse_url instead of application one

13 years agoFix locale.get_supported_locales(): remove cls parameter
Olivier Hardy [Mon, 6 Feb 2012 14:40:51 +0000 (15:40 +0100)] 
Fix locale.get_supported_locales(): remove cls parameter

13 years agoMerge remote-tracking branch 'jehiah/max_simultaneous_connections_457'
Ben Darnell [Mon, 20 Feb 2012 04:31:48 +0000 (20:31 -0800)] 
Merge remote-tracking branch 'jehiah/max_simultaneous_connections_457'

13 years agoMerge remote-tracking branch 'grydstedt/master' into work
Ben Darnell [Mon, 20 Feb 2012 04:25:43 +0000 (20:25 -0800)] 
Merge remote-tracking branch 'grydstedt/master' into work

13 years agoTest for https://github.com/facebook/tornado/pull/454
Ben Darnell [Mon, 20 Feb 2012 04:08:26 +0000 (20:08 -0800)] 
Test for https://github.com/facebook/tornado/pull/454

13 years agoMerge remote-tracking branch 'minrk/strkeys' into work
Ben Darnell [Mon, 20 Feb 2012 04:04:13 +0000 (20:04 -0800)] 
Merge remote-tracking branch 'minrk/strkeys' into work

13 years agoFurther refactoring of duplicated IOStream logic
Ben Darnell [Mon, 20 Feb 2012 03:50:01 +0000 (19:50 -0800)] 
Further refactoring of duplicated IOStream logic

13 years agoMerge remote-tracking branch 'birknilson/iostream_refactoring_read' into work
Ben Darnell [Mon, 20 Feb 2012 03:41:50 +0000 (19:41 -0800)] 
Merge remote-tracking branch 'birknilson/iostream_refactoring_read' into work

Conflicts:
tornado/iostream.py

13 years agoPass parsed hostname around explictly instead of storing it on the urlsplit result.
Ben Darnell [Mon, 20 Feb 2012 03:33:08 +0000 (19:33 -0800)] 
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.

13 years agoMerge remote-tracking branch 'ei-grad/master' into work
Ben Darnell [Mon, 20 Feb 2012 03:22:31 +0000 (19:22 -0800)] 
Merge remote-tracking branch 'ei-grad/master' into work

13 years agoUse a single Cookie.SimpleCookie for outgoing cookies instead of a list.
Ben Darnell [Mon, 20 Feb 2012 02:47:46 +0000 (18:47 -0800)] 
Use a single Cookie.SimpleCookie for outgoing cookies instead of a list.

The main reason for this change is to repeated calls to set_cookie
overwrite rather than append.

Closes #445.

13 years agoStart a new release-notes file
Ben Darnell [Mon, 20 Feb 2012 02:25:24 +0000 (18:25 -0800)] 
Start a new release-notes file

13 years agoFixed: Subsequent calls to AsyncTestCase.wait() now clear previously set timeouts. 460/head
Roey Berman [Mon, 13 Feb 2012 13:23:24 +0000 (15:23 +0200)] 
Fixed: Subsequent calls to AsyncTestCase.wait() now clear previously set timeouts.
See: http://groups.google.com/group/python-tornado/browse_thread/thread/cc77a08b15c39a14

13 years agoCheck in autopep8 script
Ben Darnell [Thu, 9 Feb 2012 09:08:04 +0000 (01:08 -0800)] 
Check in autopep8 script

13 years agoFix weird indentation in auth.py and simple_httpclient_test.py
Ben Darnell [Thu, 9 Feb 2012 09:00:11 +0000 (01:00 -0800)] 
Fix weird indentation in auth.py and simple_httpclient_test.py

13 years agoWhile I'm touching every file, run autopep8 too.
Ben Darnell [Thu, 9 Feb 2012 08:55:27 +0000 (00:55 -0800)] 
While I'm touching every file, run autopep8 too.

Might as well get all the merge headaches over with at once :)

Ran with
$ autopep8 --ignore=E111,W602 i tornado/*.py tornado/platform/*.py tornado/test/*.py

13 years agoTurn on __future__ division too.
Ben Darnell [Thu, 9 Feb 2012 08:17:58 +0000 (00:17 -0800)] 
Turn on __future__ division too.

All existing uses of division were already using a float for at least
one operand (except the tests that just do 1/0 as a quick way to throw
an exception).

We have now turned on all the __future__ options available in python2.5.

13 years agoFix one last implicit relative import
Ben Darnell [Thu, 9 Feb 2012 07:38:34 +0000 (23:38 -0800)] 
Fix one last implicit relative import

13 years agoStandardize future imports for all files in the package.
Ben Darnell [Thu, 9 Feb 2012 07:22:51 +0000 (23:22 -0800)] 
Standardize future imports for all files in the package.

13 years agoAdd a script to rewrite __future__ imports
Ben Darnell [Thu, 9 Feb 2012 07:16:56 +0000 (23:16 -0800)] 
Add a script to rewrite __future__ imports

13 years agopass kwargs through HTTPClient 457/head
Jehiah Czebotar [Sat, 4 Feb 2012 04:46:31 +0000 (23:46 -0500)] 
pass kwargs through HTTPClient

13 years agoAdd support for client certificates in curl http client 456/head
Gustav Rydstedt [Fri, 3 Feb 2012 23:28:31 +0000 (15:28 -0800)] 
Add support for client certificates in curl http client

13 years agocoerce kwarg keys to str 454/head
MinRK [Thu, 2 Feb 2012 22:05:59 +0000 (14:05 -0800)] 
coerce kwarg keys to str

If handler regex is unicode, the keys of groupdict are unicode, but should be
str, as Python < 2.6.5 does not accept unicode keys in:

    _execute(*args, **kwargs)

Since they are for keyword args, they will be valid identifiers, and thus ascii.

13 years agoMove identical IOStream read handling in read_until, read_until_regex 453/head
Birk Nilson [Thu, 2 Feb 2012 20:35:24 +0000 (21:35 +0100)] 
Move identical IOStream read handling in read_until, read_until_regex
and read_bytes to private method.

13 years agoRemove unused __main__ block that ran doctests from a non-test module.
Ben Darnell [Thu, 2 Feb 2012 17:56:47 +0000 (09:56 -0800)] 
Remove unused __main__ block that ran doctests from a non-test module.

13 years agoMerge remote-tracking branch 'igorsobreira/master'
Ben Darnell [Thu, 2 Feb 2012 17:44:18 +0000 (09:44 -0800)] 
Merge remote-tracking branch 'igorsobreira/master'

13 years agoEnable strict warnings in test runs.
Ben Darnell [Wed, 1 Feb 2012 17:15:23 +0000 (09:15 -0800)] 
Enable strict warnings in test runs.

This includes python 3.2's ResourceWarnings, which exposed the
socket leaks fixed in the previous commit.

13 years agoAlways close sockets in simple_httpclient instead of leaving them for the GC.
Ben Darnell [Wed, 1 Feb 2012 17:17:03 +0000 (09:17 -0800)] 
Always close sockets in simple_httpclient instead of leaving them for the GC.

Also fix some other sockets left open in tests.

Closes #451.

13 years agoAdd a version check for the curses unicode hack so it won't break when
Ben Darnell [Tue, 31 Jan 2012 08:34:12 +0000 (00:34 -0800)] 
Add a version check for the curses unicode hack so it won't break when
python 3.2.3 or 3.3 are released.

Closes #450.

13 years agoRemove optional setuptools import.
Ben Darnell [Tue, 31 Jan 2012 07:46:36 +0000 (23:46 -0800)] 
Remove optional setuptools import.

We don't rely on any setuptools features for python2 builds, and the
optional import makes our builds depend on the environment in subtle
ways (egg-info directories, etc).

13 years agoBump post-release version number (now pep 386 compliant!)
Ben Darnell [Tue, 31 Jan 2012 07:39:31 +0000 (23:39 -0800)] 
Bump post-release version number (now pep 386 compliant!)

13 years agoRevert "Run the website in python2.7 mode"
Ben Darnell [Mon, 30 Jan 2012 19:10:17 +0000 (11:10 -0800)] 
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 e960e9bc9d48906ed37b65ad6eb774ab33637170.

13 years agoSet version number to 2.2. v2.2.0
Ben Darnell [Mon, 30 Jan 2012 19:01:44 +0000 (11:01 -0800)] 
Set version number to 2.2.

13 years agoFinal release notes for 2.2
Ben Darnell [Mon, 30 Jan 2012 19:01:35 +0000 (11:01 -0800)] 
Final release notes for 2.2

13 years agoRun the website in python2.7 mode
Ben Darnell [Mon, 30 Jan 2012 05:56:53 +0000 (21:56 -0800)] 
Run the website in python2.7 mode

13 years agoAdd a highlights section to the release notes.
Ben Darnell [Mon, 30 Jan 2012 05:53:45 +0000 (21:53 -0800)] 
Add a highlights section to the release notes.

13 years agofixed usage of bad hostname (ipv6 addresses support is broken in urlparse until 2.7) 448/head
Andrew Grigorev [Mon, 30 Jan 2012 04:12:24 +0000 (08:12 +0400)] 
fixed usage of bad hostname (ipv6 addresses support is broken in urlparse until 2.7)

13 years agoAdd test to parse_multipart_form_data() when no "name" parameter is found 444/head
Igor Sobreira [Wed, 25 Jan 2012 02:19:40 +0000 (00:19 -0200)] 
Add test to parse_multipart_form_data() when no "name" parameter is found

13 years agoAdd test to parse_multipart_form_data() when line does not end with the correct line...
Igor Sobreira [Wed, 25 Jan 2012 02:14:17 +0000 (00:14 -0200)] 
Add test to parse_multipart_form_data() when line does not end with the correct line break (\r\n)

13 years agoAdd test to parse_multipart_form_data() when invalid Content-Disposition
Igor Sobreira [Wed, 25 Jan 2012 01:48:54 +0000 (23:48 -0200)] 
Add test to parse_multipart_form_data() when invalid Content-Disposition

13 years agoAdd test to parse_multipart_form_data() when missing headers
Igor Sobreira [Wed, 25 Jan 2012 01:43:47 +0000 (23:43 -0200)] 
Add test to parse_multipart_form_data() when missing headers

13 years agoAdd test to parse_multipart_form_data() on httputil when "boundary" parameter has...
Igor Sobreira [Wed, 25 Jan 2012 00:45:18 +0000 (22:45 -0200)] 
Add test to parse_multipart_form_data() on httputil when "boundary" parameter has quotes

13 years agoDocument curl_httpclient empty password fix.
Ben Darnell [Mon, 23 Jan 2012 18:20:35 +0000 (10:20 -0800)] 
Document curl_httpclient empty password fix.

Accept None as auth_password in simple_httpclient for consistency with
curl_httpclient.

13 years agoMerge commit 'df23c'
Ben Darnell [Mon, 23 Jan 2012 18:12:56 +0000 (10:12 -0800)] 
Merge commit 'df23c'

13 years agoFix gen.engine docs on decorator order.
Ben Darnell [Mon, 23 Jan 2012 17:45:29 +0000 (09:45 -0800)] 
Fix gen.engine docs on decorator order.

Add some more test cases that use gen.engine and web.asynchronous together.

13 years agochange encode('ascii') to utf8() 442/head 443/head
dave mankoff [Mon, 23 Jan 2012 13:33:51 +0000 (08:33 -0500)] 
change encode('ascii') to utf8()

13 years agoAdd a timeout to test_sslv2_fail so it passes on cygwin.
Ben Darnell [Mon, 23 Jan 2012 02:15:01 +0000 (18:15 -0800)] 
Add a timeout to test_sslv2_fail so it passes on cygwin.

13 years agoDoc updates
Ben Darnell [Mon, 23 Jan 2012 01:52:43 +0000 (17:52 -0800)] 
Doc updates

13 years agoRelease note updates
Ben Darnell [Mon, 23 Jan 2012 01:04:51 +0000 (17:04 -0800)] 
Release note updates

13 years agoMake StaticFileHandler.parse_url_path an instance method, and make
Ben Darnell [Sun, 22 Jan 2012 23:26:35 +0000 (15:26 -0800)] 
Make StaticFileHandler.parse_url_path an instance method, and make
it responsible for os.path.sep conversion.

Assorted doc updates for StaticFileHandler.

13 years agoMerge commit '59812' into work
Ben Darnell [Sun, 22 Jan 2012 22:56:21 +0000 (14:56 -0800)] 
Merge commit '59812' into work

13 years agoMerge remote-tracking branch 'birknilson/static_url_override' into work
Ben Darnell [Sun, 22 Jan 2012 22:25:16 +0000 (14:25 -0800)] 
Merge remote-tracking branch 'birknilson/static_url_override' into work

13 years agoAlways set Etag in StaticFileHandler so it won't break if the default
Ben Darnell [Sun, 22 Jan 2012 22:19:19 +0000 (14:19 -0800)] 
Always set Etag in StaticFileHandler so it won't break if the default
Etag implementation in RequestHandler changes.

13 years agofix curl basic auth
dave mankoff [Sun, 22 Jan 2012 22:15:10 +0000 (17:15 -0500)] 
fix curl basic auth

13 years agoMerge remote-tracking branch 'lerks/master' into work
Ben Darnell [Sun, 22 Jan 2012 22:10:14 +0000 (14:10 -0800)] 
Merge remote-tracking branch 'lerks/master' into work

13 years agoUpdate websocket chat demo to work when not addressed as localhost.
Ben Darnell [Sun, 22 Jan 2012 01:39:37 +0000 (17:39 -0800)] 
Update websocket chat demo to work when not addressed as localhost.

Turn on draft76 support.

13 years agoMerge remote-tracking branch 'MrJoes/master' into work
Ben Darnell [Sun, 22 Jan 2012 01:28:07 +0000 (17:28 -0800)] 
Merge remote-tracking branch 'MrJoes/master' into work

Conflicts:
tornado/websocket.py

13 years agoRefactor websocket close logic; remove dependency on singleton IOLoop.
Ben Darnell [Sun, 22 Jan 2012 01:20:10 +0000 (17:20 -0800)] 
Refactor websocket close logic; remove dependency on singleton IOLoop.

13 years agoDisable slow websocket performance tests by default.
Ben Darnell [Sun, 22 Jan 2012 01:12:22 +0000 (17:12 -0800)] 
Disable slow websocket performance tests by default.

Add pypy to the mix for when we do run the perf tests.  Depending on
the benchmark pypy is ~twice as fast as cpython 2.7

13 years agoRemove stray log line
Ben Darnell [Sun, 22 Jan 2012 00:16:36 +0000 (16:16 -0800)] 
Remove stray log line

13 years agoCheck if the stream is closed before writing final websocket close packet.
Ben Darnell [Sat, 21 Jan 2012 23:58:35 +0000 (15:58 -0800)] 
Check if the stream is closed before writing final websocket close packet.

Closes #390.

13 years agoWebsocket subprotocol updates.
Ben Darnell [Sat, 21 Jan 2012 23:34:11 +0000 (15:34 -0800)] 
Websocket subprotocol updates.

Failure to select a subprotocol is not fatal, so rename method from
validate_subprotocol to select_subprotocol.  Subprotocols are a
comma-separated list in the RFC version, but a single value in
draft76.

13 years agoMerge remote-tracking branch 'davidgaleano/master' into work
Ben Darnell [Sat, 21 Jan 2012 23:15:12 +0000 (15:15 -0800)] 
Merge remote-tracking branch 'davidgaleano/master' into work

Conflicts:
tornado/websocket.py

13 years agoAllow handlers to override the selection of "ws" or "wss" in the draft76
Ben Darnell [Sat, 21 Jan 2012 22:56:43 +0000 (14:56 -0800)] 
Allow handlers to override the selection of "ws" or "wss" in the draft76
handshake, to work with SSL proxies that do not insert an X-Scheme header.

Closes #437.

13 years agoMerge remote-tracking branch 'nephics/master' into work
Ben Darnell [Sat, 21 Jan 2012 22:45:51 +0000 (14:45 -0800)] 
Merge remote-tracking branch 'nephics/master' into work