]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
7 years agoDocument ssl module requirements in index.rst 2177/head
Ben Darnell [Sun, 22 Oct 2017 17:23:12 +0000 (13:23 -0400)] 
Document ssl module requirements in index.rst

7 years agoUse SSLContext APIs in simple_httpclient
Ben Darnell [Sun, 22 Oct 2017 17:14:44 +0000 (13:14 -0400)] 
Use SSLContext APIs in simple_httpclient

Set OP_NO_COMPRESSION more consistently.

7 years agoRemove some vestigial workarounds for py26
Ben Darnell [Sun, 22 Oct 2017 16:31:54 +0000 (12:31 -0400)] 
Remove some vestigial workarounds for py26

7 years agoRequire modern ssl features (SSLContext, etc)
Ben Darnell [Sun, 22 Oct 2017 16:20:18 +0000 (12:20 -0400)] 
Require modern ssl features (SSLContext, etc)

Now that we've dropped python 3.3 (so create_default_context is
present on all supported versions), we can drop all ssl
backwards-compatibility and require the modern feature set.

7 years agoImplement IOLoop.run_in_executor (#2067)
Mike DePalatis [Sat, 21 Oct 2017 18:04:57 +0000 (14:04 -0400)] 
Implement IOLoop.run_in_executor (#2067)

7 years agoMerge pull request #2157 from pjknkda/master
Ben Darnell [Sat, 23 Sep 2017 17:07:07 +0000 (13:07 -0400)] 
Merge pull request #2157 from pjknkda/master

websocket: fix missing websocket header causes an exception

7 years agoMerge pull request #2155 from dawncold/fix-iostream-exception-alias
Ben Darnell [Sat, 23 Sep 2017 16:52:27 +0000 (12:52 -0400)] 
Merge pull request #2155 from dawncold/fix-iostream-exception-alias

fix: iostream exception alias

7 years agoMerge pull request #2154 from juanpabloaj/removed-unused-import-logging
Ben Darnell [Sat, 23 Sep 2017 16:51:10 +0000 (12:51 -0400)] 
Merge pull request #2154 from juanpabloaj/removed-unused-import-logging

removed unused import logging

7 years agoMerge pull request #2149 from ploxiln/file_upload_yield
Ben Darnell [Sat, 23 Sep 2017 16:12:33 +0000 (12:12 -0400)] 
Merge pull request #2149 from ploxiln/file_upload_yield

file_upload demo: yield write() cb in body_producer

7 years agofix websocket handshake failure causes an exception 2157/head
Jungkook Park [Thu, 21 Sep 2017 17:14:51 +0000 (02:14 +0900)] 
fix websocket handshake failure causes an exception

7 years agofix: iostream exception alias 2155/head
TianZhen [Tue, 19 Sep 2017 09:44:15 +0000 (17:44 +0800)] 
fix: iostream exception alias

7 years agoremoved unused import logging 2154/head
JuanPablo [Tue, 19 Sep 2017 01:19:17 +0000 (22:19 -0300)] 
removed unused import logging

7 years agofile_upload demo: write multi-part framing in one call 2149/head
Pierce Lopez [Tue, 12 Sep 2017 20:57:50 +0000 (16:57 -0400)] 
file_upload demo: write multi-part framing in one call

7 years agofile_upload demo: yield write() cb in body_producer
Pierce Lopez [Fri, 8 Sep 2017 21:49:55 +0000 (17:49 -0400)] 
file_upload demo: yield write() cb in body_producer

7 years agoDrop support for python 3.3, 3.5.[01] (#2116)
Ben Darnell [Mon, 4 Sep 2017 19:32:52 +0000 (15:32 -0400)] 
Drop support for python 3.3, 3.5.[01] (#2116)

* Drop support for python 3.3

In June 2017, Python 3.3 accounted for 0.2% of Tornado's downloads
from pypi.

* travis.yml: Use trusty, update pypy versions

Get a py35-compatible version of pypy3. Plain "pypy" no longer seems
to work in this environment, so specify a version.

Drop testing of python 2.7.8, which no longer seems to be available.

* gen,queues: Drop the "legacy aiter protocol"

This protocol changed in Python 3.5.2 (after being introduced in
3.5.0). Async iteration now requires that version of Python (or
newer).

Closes #2107

* travis.yml: Only run doctests on one version of python 3

* Get tests passing on latest version of pypy3

7 years agoCorrectly clear and create a new ioloop during autoreload (#2137)
Josh Humphries [Sun, 3 Sep 2017 17:48:54 +0000 (18:48 +0100)] 
Correctly clear and create a new ioloop during autoreload (#2137)

* Correctly clear and create a new ioloop during autoreload

After the removal of the deprecated io_loop arguments from all functions,
the autoreload module stopped working as the wait function's usage was
missed in the refactor. This resulted in the start function receiving an
IOLoop object as its only argument which it then used as the check_time
argument resulting in errors further down the line when the check_time
is expected to be an int.

* Use the ioloop's add_callback function to start the ioloop on wait

There's no need to stop and clear the loop here, just add start as
a callback and start up the ioloop.

7 years agoMerge pull request #2132 from felliott/stop-logging-headers
Ben Darnell [Sun, 27 Aug 2017 16:50:55 +0000 (12:50 -0400)] 
Merge pull request #2132 from felliott/stop-logging-headers

Remove headers from HTTPServerRequest repr

7 years agoMerge pull request #2130 from jaimegago/master
Ben Darnell [Sun, 27 Aug 2017 16:27:29 +0000 (12:27 -0400)] 
Merge pull request #2130 from jaimegago/master

Add SSL/SSH handshake timing to response properties (curl client)

7 years agoRemove headers from HTTPServerRequest repr 2132/head
Fitz Elliott [Thu, 10 Aug 2017 15:10:00 +0000 (11:10 -0400)] 
Remove headers from HTTPServerRequest repr

 * In tornadoweb/tornado#1112 it was decided to stop including headers
   in the request repr, since they are needlessly verbose and risk
   leaking user secrets into the application log.

7 years agoAdd SSL/SSH handshake timing to response properties (curl client) 2130/head
Jaime Gago [Wed, 9 Aug 2017 22:08:48 +0000 (15:08 -0700)] 
Add SSL/SSH handshake timing to response properties (curl client)

8 years agoFix various typos in comments
Ben Darnell [Sun, 23 Jul 2017 18:48:37 +0000 (14:48 -0400)] 
Fix various typos in comments

8 years agoMerge pull request #2109 from yiliangt5/fix/redirecthandler_passes_get_args
Ben Darnell [Sun, 16 Jul 2017 15:30:41 +0000 (11:30 -0400)] 
Merge pull request #2109 from yiliangt5/fix/redirecthandler_passes_get_args

feat: RedirectHandler to pass GET query

8 years agofeat: RedirectHandler to pass GET query 2109/head
Yiliang Tang [Sat, 17 Jun 2017 06:09:05 +0000 (14:09 +0800)] 
feat: RedirectHandler to pass GET query

8 years agoMerge pull request #2106 from minrk/pycurl-debug-str
Ben Darnell [Sun, 16 Jul 2017 03:26:59 +0000 (23:26 -0400)] 
Merge pull request #2106 from minrk/pycurl-debug-str

cast pycurl debug messages to str

8 years agotcpclient: Introduce connect timeout (#2094)
Lancher [Sun, 16 Jul 2017 03:13:00 +0000 (11:13 +0800)] 
tcpclient: Introduce connect timeout (#2094)

Fixes #1219

8 years agoMerge pull request #2098 from sebbov/master
Ben Darnell [Sat, 15 Jul 2017 19:56:52 +0000 (15:56 -0400)] 
Merge pull request #2098 from sebbov/master

Do not send/expect Content-Length on 1xx

8 years agocast curl debug messages to str 2106/head
Min RK [Tue, 11 Jul 2017 10:07:34 +0000 (12:07 +0200)] 
cast curl debug messages to str

since they come in as bytes on Python 3

8 years agoHandle 1xx's along 204/304's 2098/head
Sebastien Boving [Wed, 5 Jul 2017 17:04:33 +0000 (10:04 -0700)] 
Handle 1xx's along 204/304's

8 years agoMerge pull request #2075 from pitrou/accept_ebadf_race
Ben Darnell [Tue, 4 Jul 2017 22:35:08 +0000 (18:35 -0400)] 
Merge pull request #2075 from pitrou/accept_ebadf_race

Fix #2069: Fix race condition between accept() handler and TCPServer.stop()

8 years agoFriendFeed website seems to have gone
Chris Snow [Tue, 27 Jun 2017 20:31:24 +0000 (21:31 +0100)] 
FriendFeed website seems to have gone

8 years agoDo not send/expect Content-Length on 1xx
Sebastien Boving [Tue, 27 Jun 2017 16:35:55 +0000 (09:35 -0700)] 
Do not send/expect Content-Length on 1xx

8 years agoMerge pull request #2081 from noyainrain/fix-autoreload-module
Ben Darnell [Sun, 18 Jun 2017 02:24:50 +0000 (22:24 -0400)] 
Merge pull request #2081 from noyainrain/fix-autoreload-module

Fix module autoreload for __main__ with relative imports

8 years agoApply changes from review 2081/head
Sven [Fri, 16 Jun 2017 08:43:29 +0000 (10:43 +0200)] 
Apply changes from review

8 years agoMerge pull request #2084 from bdarnell/docs
Ben Darnell [Sun, 11 Jun 2017 18:28:10 +0000 (14:28 -0400)] 
Merge pull request #2084 from bdarnell/docs

testing: Fix incorrect docs for gen_test

8 years agotesting: Fix incorrect docs for gen_test 2084/head
Ben Darnell [Sun, 11 Jun 2017 16:10:19 +0000 (12:10 -0400)] 
testing: Fix incorrect docs for gen_test

Pointed out in #1154

8 years agoMerge pull request #2083 from bdarnell/log-cleanup
Ben Darnell [Sun, 11 Jun 2017 13:36:00 +0000 (09:36 -0400)] 
Merge pull request #2083 from bdarnell/log-cleanup

Clean up test logging

8 years agoUse getitem / setitem idiom on nonlocal list 2075/head
Antoine Pitrou [Sun, 11 Jun 2017 08:41:45 +0000 (10:41 +0200)] 
Use getitem / setitem idiom on nonlocal list

8 years agotest: Make log detection sensitive to info logs 2083/head
Ben Darnell [Sun, 11 Jun 2017 03:00:08 +0000 (23:00 -0400)] 
test: Make log detection sensitive to info logs

Silence one in httpserver_test

8 years agotesting: Remove deprecated LogTrapTestCase
Ben Darnell [Sun, 11 Jun 2017 02:47:55 +0000 (22:47 -0400)] 
testing: Remove deprecated LogTrapTestCase

Move the tests that relied on this in concurrent_test.py to use
log.debug instead. (The redbot test has been broken and needs work
anyway.

8 years agoMerge pull request #2082 from bdarnell/timeouterror
Ben Darnell [Sun, 11 Jun 2017 02:12:23 +0000 (22:12 -0400)] 
Merge pull request #2082 from bdarnell/timeouterror

ioloop,gen: Unify TimeoutErrors

8 years agoioloop,gen: Unify TimeoutErrors 2082/head
Ben Darnell [Sat, 10 Jun 2017 22:08:49 +0000 (18:08 -0400)] 
ioloop,gen: Unify TimeoutErrors

Fixes #1929

8 years agoMerge pull request #2077 from vladimirbright/clarify_timeouts_in_queues
Ben Darnell [Sat, 10 Jun 2017 22:13:57 +0000 (18:13 -0400)] 
Merge pull request #2077 from vladimirbright/clarify_timeouts_in_queues

Added information about timeout arg in Queue get and put methods

8 years agoMerge pull request #2074 from ploxiln/http1_connection_close
Ben Darnell [Sat, 10 Jun 2017 21:20:14 +0000 (17:20 -0400)] 
Merge pull request #2074 from ploxiln/http1_connection_close

http1connection: add "Connection: close" header if appropriate

8 years agoMerge pull request #2058 from jehiah/http_request_line_bad_request_2058
Ben Darnell [Sat, 10 Jun 2017 21:18:42 +0000 (17:18 -0400)] 
Merge pull request #2058 from jehiah/http_request_line_bad_request_2058

Return HTTP 400 on bad request lines

8 years agoFix newline handling in autoreload test
Sven [Fri, 9 Jun 2017 16:38:51 +0000 (18:38 +0200)] 
Fix newline handling in autoreload test

8 years agoFix module autoreload for __main__ with relative imports
Sven [Fri, 9 Jun 2017 14:50:34 +0000 (16:50 +0200)] 
Fix module autoreload for __main__ with relative imports

The fix works for Python >= 3.4, keeping the current workaround for previous
versions. Also introduce a first unit test for autoreload. Close #2044.

8 years agoAdded information about timeout arg in Queue get and put methods 2077/head
Vladimir Prokhoda [Thu, 8 Jun 2017 08:38:13 +0000 (11:38 +0300)] 
Added information about timeout arg in Queue get and put methods

8 years agoRelax test failure when failing to reproduce the race condition
Antoine Pitrou [Tue, 6 Jun 2017 09:03:22 +0000 (11:03 +0200)] 
Relax test failure when failing to reproduce the race condition

8 years agoFix #2069: Fix race condition between accept() handler and TCPServer.stop()
Antoine Pitrou [Tue, 6 Jun 2017 08:43:14 +0000 (10:43 +0200)] 
Fix #2069: Fix race condition between accept() handler and TCPServer.stop()

8 years agohttpserver: remove unused no_keep_alive attribute 2074/head
Pierce Lopez [Mon, 5 Jun 2017 17:22:39 +0000 (13:22 -0400)] 
httpserver: remove unused no_keep_alive attribute

still a parameter passed on to HTTP1Connection

8 years agohttp1connection: add "Connection: close" header if appropriate
Pierce Lopez [Mon, 5 Jun 2017 04:48:45 +0000 (00:48 -0400)] 
http1connection: add "Connection: close" header if appropriate

When HTTP1Connection acts as the server, it closes the connection
after writing the response if the client includes the
"Connection: close" header in the request, or if the `no_keep_alive`
option is set to True in the constructor.

According to https://tools.ietf.org/html/rfc7230#section-6.6

> The server SHOULD send a "close" connection option in its final
response on that connection.

It was possible for an Application to set the Connection header
appropriately. But it is very helpful for tornado to take care of
this automatically, particularly if "close" was specified in a
request header.

8 years agoMerge pull request #2072 from bdarnell/asyncio-default
Ben Darnell [Sun, 4 Jun 2017 14:05:41 +0000 (10:05 -0400)] 
Merge pull request #2072 from bdarnell/asyncio-default

ioloop: Make asyncio the default when available

8 years agoioloop: Make asyncio the default when available 2072/head
Ben Darnell [Sat, 3 Jun 2017 20:08:44 +0000 (16:08 -0400)] 
ioloop: Make asyncio the default when available

In addition to changing the configurable default, add a special case
in IOLoop.current() so that the current IOLoop will be backed by
the main asyncio event loop.

8 years agoReturn HTTP 400 (Bad Request) on malformed requests 2058/head
Jehiah Czebotar [Fri, 26 May 2017 13:15:26 +0000 (09:15 -0400)] 
Return HTTP 400 (Bad Request) on malformed requests

8 years agoioloop: Add tests for IOLoop configuration
Ben Darnell [Sat, 3 Jun 2017 21:08:51 +0000 (17:08 -0400)] 
ioloop: Add tests for IOLoop configuration

8 years agoMerge pull request #2063 from bdarnell/ioloop-instance
Ben Darnell [Mon, 29 May 2017 16:05:11 +0000 (12:05 -0400)] 
Merge pull request #2063 from bdarnell/ioloop-instance

ioloop: Redefine instance() in terms of current()

8 years agoMerge pull request #2064 from bdarnell/cloexec
Ben Darnell [Mon, 29 May 2017 15:23:03 +0000 (11:23 -0400)] 
Merge pull request #2064 from bdarnell/cloexec

tcpclient,netutil: Set FD_CLOEXEC on all sockets created by Tornado

8 years agotcpclient,netutil: Set FD_CLOEXEC on all sockets created by Tornado 2064/head
Ben Darnell [Mon, 29 May 2017 00:10:01 +0000 (20:10 -0400)] 
tcpclient,netutil: Set FD_CLOEXEC on all sockets created by Tornado

PR #1984 was based on the mistaken belief that we were already
doing this (and in python 3.4+, it's true, thanks to PEP 446). This
fixes a regression introduced in Tornado 4.5 in which autoreload would
leak file descriptors and leave client connections hanging.

Fixes #2057

8 years agoioloop: Redefine instance() in terms of current() 2063/head
Ben Darnell [Sun, 28 May 2017 14:44:55 +0000 (10:44 -0400)] 
ioloop: Redefine instance() in terms of current()

This aligns us more closely with asyncio, which only has a single
get_event_loop() function. Most uses of instance() are simply a
holdover from before current() was introduced and are not actually
relying on its slightly different behavior, so we redefine it (and the
related methods install(), initialized(), and clear_instance()) in
terms of current().

8 years agoMerge pull request #2062 from bdarnell/configure-pollioloop
Ben Darnell [Sat, 27 May 2017 23:49:38 +0000 (19:49 -0400)] 
Merge pull request #2062 from bdarnell/configure-pollioloop

ioloop: Make PollIOLoop separately configurable

8 years agoioloop: Make PollIOLoop separately configurable 2062/head
Ben Darnell [Sat, 27 May 2017 23:11:35 +0000 (19:11 -0400)] 
ioloop: Make PollIOLoop separately configurable

This makes it possible to construct a PollIOLoop even when the default
IOLoop is configured to something else.

8 years agoutil: Enable multiple configurable bases in one hierarchy
Ben Darnell [Sat, 27 May 2017 23:10:45 +0000 (19:10 -0400)] 
util: Enable multiple configurable bases in one hierarchy

This allows a mid-level class like PollIOLoop to have its own
configurability.

8 years agoMerge pull request #2052 from bdarnell/deprecated
Ben Darnell [Sat, 27 May 2017 14:28:43 +0000 (10:28 -0400)] 
Merge pull request #2052 from bdarnell/deprecated

all: Remove deprecated io_loop arguments

8 years agoMerge pull request #2028 from pitrou/close_exc_info
Ben Darnell [Fri, 26 May 2017 02:13:49 +0000 (22:13 -0400)] 
Merge pull request #2028 from pitrou/close_exc_info

Avoid IOStream.close(exc_info=True)

8 years agoconcurrent: Remove use of self.io_loop from run_on_executor 2052/head
Ben Darnell [Mon, 22 May 2017 05:03:46 +0000 (01:03 -0400)] 
concurrent: Remove use of self.io_loop from run_on_executor

8 years agoall: Remove deprecated io_loop arguments
Ben Darnell [Mon, 22 May 2017 03:57:46 +0000 (23:57 -0400)] 
all: Remove deprecated io_loop arguments

IOLoop.current() is now used in all cases; it is no longer possible to
pass IOLoops around and use them directly. This occasionally requires
awkward workarounds with IOLoop.run_sync, but mainly in test code
(and the synchronous HTTPClient).

8 years agotesting: Remove deprecated get_unused_port()
Ben Darnell [Sun, 21 May 2017 23:16:58 +0000 (19:16 -0400)] 
testing: Remove deprecated get_unused_port()

This function never did a good job and has long since been deprecated
in favor of bind_unused_port.

8 years agoMerge pull request #2002 from nvllsvm/master
Ben Darnell [Sun, 21 May 2017 22:17:38 +0000 (18:17 -0400)] 
Merge pull request #2002 from nvllsvm/master

Fetch absolute URL in AsyncHTTPTestCase

8 years agoMerge pull request #2051 from bdarnell/appveyor-speedup
Ben Darnell [Sun, 21 May 2017 20:42:40 +0000 (16:42 -0400)] 
Merge pull request #2051 from bdarnell/appveyor-speedup

build: Speed up appveyor tests by not running the full matrix.

8 years agobuild: Speed up appveyor tests by not running the full matrix. 2051/head
Ben Darnell [Sun, 21 May 2017 16:15:19 +0000 (12:15 -0400)] 
build: Speed up appveyor tests by not running the full matrix.

Only run partial tests in two of the four environments.

8 years agoMerge pull request #2050 from bdarnell/appveyor-config
Ben Darnell [Sun, 21 May 2017 15:41:40 +0000 (11:41 -0400)] 
Merge pull request #2050 from bdarnell/appveyor-config

build: Don't double-test on appveyor

8 years agoMerge pull request #2048 from bdarnell/option-redefinition
Ben Darnell [Sun, 21 May 2017 02:50:12 +0000 (22:50 -0400)] 
Merge pull request #2048 from bdarnell/option-redefinition

options: Report redefinition errors when underscores are used

8 years agoMerge pull request #2045 from bdarnell/websocket-raise
Ben Darnell [Sun, 21 May 2017 02:49:47 +0000 (22:49 -0400)] 
Merge pull request #2045 from bdarnell/websocket-raise

websocket: Don't swallow exceptions in _write_frame

8 years agoMerge pull request #2038 from schlamar/patch-2
Ben Darnell [Sun, 21 May 2017 00:00:03 +0000 (20:00 -0400)] 
Merge pull request #2038 from schlamar/patch-2

don't check error code in test_set_close_exec

8 years agoMerge pull request #2047 from bdarnell/assert-pid
Ben Darnell [Sat, 20 May 2017 23:56:48 +0000 (19:56 -0400)] 
Merge pull request #2047 from bdarnell/assert-pid

ioloop: Document the incompatibility of IOLoop and fork()

8 years agoMerge pull request #2046 from bdarnell/cookie-docs
Ben Darnell [Sat, 20 May 2017 21:47:56 +0000 (17:47 -0400)] 
Merge pull request #2046 from bdarnell/cookie-docs

web: Clarify cookie method docs

8 years agobuild: Don't double-test on appveyor 2050/head
Ben Darnell [Sat, 20 May 2017 19:41:07 +0000 (15:41 -0400)] 
build: Don't double-test on appveyor

Pointed out in #2028

8 years agoTest fetch full URL if applicable 2002/head
Andrew Rabert [Wed, 5 Apr 2017 02:29:46 +0000 (22:29 -0400)] 
Test fetch full URL if applicable

8 years agoMerge pull request #2024 from pjknkda/master
Ben Darnell [Sat, 20 May 2017 18:53:19 +0000 (14:53 -0400)] 
Merge pull request #2024 from pjknkda/master

websocket: optimize C websocket_mask function

8 years agoMerge pull request #2022 from coldnight/master
Ben Darnell [Sat, 20 May 2017 17:57:18 +0000 (13:57 -0400)] 
Merge pull request #2022 from coldnight/master

Fix CurlAsyncHTTPClient cause memory leak with `force_instance=True`

8 years agooptions: Report redefinition errors when underscores are used 2048/head
Ben Darnell [Sat, 20 May 2017 17:44:08 +0000 (13:44 -0400)] 
options: Report redefinition errors when underscores are used

Fixes #2020

8 years agowebsocket: Don't swallow exceptions in _write_frame 2045/head
Ben Darnell [Sat, 20 May 2017 16:09:58 +0000 (12:09 -0400)] 
websocket: Don't swallow exceptions in _write_frame

Swallowing the exception violated the method's interface (by returning
None instead of a Future), and differs from stream-closed behavior in
other contexts in Tornado.

Fixes #1980

8 years agoioloop: Document the incompatibility of IOLoop and fork() 2047/head
Ben Darnell [Sat, 20 May 2017 17:01:07 +0000 (13:01 -0400)] 
ioloop: Document the incompatibility of IOLoop and fork()

Fixes #2004

8 years agoweb: Clarify cookie method docs 2046/head
Ben Darnell [Sat, 20 May 2017 16:29:55 +0000 (12:29 -0400)] 
web: Clarify cookie method docs

Be explicit that get_cookie cannot see the cookies set within the
current request, avoiding confusion as seen in #1993

8 years agoMerge pull request #1979 from SuminAndrew/responses-py2-py34
Ben Darnell [Sat, 20 May 2017 16:19:04 +0000 (12:19 -0400)] 
Merge pull request #1979 from SuminAndrew/responses-py2-py34

web: Don't raise on unknown HTTP response codes

8 years agoBump master version to 5.0.dev1
Ben Darnell [Sat, 20 May 2017 15:40:08 +0000 (11:40 -0400)] 
Bump master version to 5.0.dev1

8 years agodon't check error code in test_set_close_exec 2038/head
Marc Schlaich [Mon, 8 May 2017 13:29:42 +0000 (15:29 +0200)] 
don't check error code in test_set_close_exec

8 years agoAvoid IOStream.close(exc_info=True) 2028/head
Antoine Pitrou [Thu, 27 Apr 2017 14:29:10 +0000 (16:29 +0200)] 
Avoid IOStream.close(exc_info=True)

close(exc_info=True) calls sys.exc_info() to get the "current" exception.
Unfortunately, on Python 2 this is the last raised exception even if it
was caught and silenced (by contrast with Python 3, which has lexically
nested exceptions).  This could set ``IOStream.error`` and therefore
``TCPClient.connect``'s raised exception to the wrong error.

Fix by passing the explicit error instance instead.

8 years agoMerge pull request #2025 from chrisgavin/python3
A. Jesse Jiryu Davis [Wed, 26 Apr 2017 13:44:17 +0000 (08:44 -0500)] 
Merge pull request #2025 from chrisgavin/python3

Fix file upload demo on Python 2.

8 years agofix build failure in MSVC compiler 2024/head
Jungkook Park [Wed, 26 Apr 2017 04:12:28 +0000 (13:12 +0900)] 
fix build failure in MSVC compiler

8 years agoFix file upload demo on Python 2. 2025/head
Chris Gavin [Tue, 25 Apr 2017 20:40:22 +0000 (21:40 +0100)] 
Fix file upload demo on Python 2.

8 years agowebsocket: optimize C mask extension
Jungkook Park [Tue, 25 Apr 2017 14:45:40 +0000 (23:45 +0900)] 
websocket: optimize C mask extension

8 years agoFix CurlAsyncHTTPClient cause memory leak with `force_instance=True` 2022/head
wanghui [Fri, 21 Apr 2017 11:30:54 +0000 (19:30 +0800)] 
Fix CurlAsyncHTTPClient cause memory leak with `force_instance=True`

The CurlAsyncHTTPClient will cause memory leak when set `force_instance=True`,
because the `self._multi` and `self._force_timeout_callback` hold some methods
that belong the instance of `CurlAsyncHTTPClient`, it will cause circular reference.

8 years agoFix header for 4.5.1 release notes
Ben Darnell [Thu, 20 Apr 2017 15:39:58 +0000 (11:39 -0400)] 
Fix header for 4.5.1 release notes

8 years agoVersion 4.5.1 v4.5.1
Ben Darnell [Thu, 20 Apr 2017 13:32:04 +0000 (09:32 -0400)] 
Version 4.5.1

8 years agoMerge pull request #2019 from bdarnell/colorama-fix
Ben Darnell [Thu, 20 Apr 2017 03:16:38 +0000 (23:16 -0400)] 
Merge pull request #2019 from bdarnell/colorama-fix

log: Fix color logging detection

8 years agolog: Fix color logging detection 2019/head
Ben Darnell [Thu, 20 Apr 2017 01:38:57 +0000 (21:38 -0400)] 
log: Fix color logging detection

The previous logic would fail whenever curses is missing (which is
always true on windows, and is occasionally true on other platforms)
and colorama is installed but not initialized in this process (this is
a common occurrence for users of jupyter and ipython on windows).

Fixes #2013
Fixes #2015

8 years agoMerge pull request #2018 from aetherson/master
Ben Darnell [Thu, 20 Apr 2017 01:35:38 +0000 (21:35 -0400)] 
Merge pull request #2018 from aetherson/master

fix backwards compatibility of url_concat for args=None

8 years agofix backwards compatibility of url_concat for args=None 2018/head
Andy Anderson [Wed, 19 Apr 2017 15:43:43 +0000 (10:43 -0500)] 
fix backwards compatibility of url_concat for args=None

8 years agoSet version to 4.5 v4.5.0
Ben Darnell [Sun, 16 Apr 2017 23:46:22 +0000 (19:46 -0400)] 
Set version to 4.5