]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
8 years agoprocess: Silence "subprocess still running" warnings on python3.6
Ben Darnell [Mon, 20 Feb 2017 19:35:34 +0000 (14:35 -0500)] 
process: Silence "subprocess still running" warnings on python3.6

8 years agotcpclient: Close socket on source_ip bind failure
Ben Darnell [Mon, 20 Feb 2017 19:18:22 +0000 (14:18 -0500)] 
tcpclient: Close socket on source_ip bind failure

Silences a warning on python 3

8 years agoMerge pull request #1954 from dinever/patch-1
A. Jesse Jiryu Davis [Fri, 17 Feb 2017 16:27:12 +0000 (11:27 -0500)] 
Merge pull request #1954 from dinever/patch-1

Fixed a simple typo in websocket.py

8 years agoFix a typo 1954/head
Shawn Ding [Fri, 17 Feb 2017 06:07:41 +0000 (01:07 -0500)] 
Fix a typo

8 years agoMerge pull request #1948 from jeffhunter/master
Ben Darnell [Fri, 10 Feb 2017 00:21:35 +0000 (19:21 -0500)] 
Merge pull request #1948 from jeffhunter/master

add support for HTTP 308 redirects

8 years agoMerge pull request #1935 from mirceaulinic/SOURCE-IP
Ben Darnell [Fri, 10 Feb 2017 00:06:34 +0000 (19:06 -0500)] 
Merge pull request #1935 from mirceaulinic/SOURCE-IP

TCPClient: connect using specific source IP address and port

8 years agoMerge pull request #1949 from ajdavis/asyncio-async-deprecated
A. Jesse Jiryu Davis [Thu, 9 Feb 2017 03:59:15 +0000 (22:59 -0500)] 
Merge pull request #1949 from ajdavis/asyncio-async-deprecated

Avoid deprecated asyncio.async() in test

8 years agoAvoid deprecated asyncio.async() in test 1949/head
A. Jesse Jiryu Davis [Thu, 9 Feb 2017 01:23:39 +0000 (20:23 -0500)] 
Avoid deprecated asyncio.async() in test

8 years agoadd support for HTTP 308 redirects 1948/head
Jeff Hunter [Thu, 9 Feb 2017 01:17:31 +0000 (17:17 -0800)] 
add support for HTTP 308 redirects

8 years agoMerge pull request #1945 from brianmego/patch-1
A. Jesse Jiryu Davis [Wed, 8 Feb 2017 23:59:05 +0000 (18:59 -0500)] 
Merge pull request #1945 from brianmego/patch-1

Documentation Typo

8 years agoDocumentation Typo 1945/head
Brian Mego [Wed, 8 Feb 2017 21:30:41 +0000 (15:30 -0600)] 
Documentation Typo

I kept misspelling "response" in my own project's docstrings and upon grepping to make sure it was totally wiped out, discovered it was also misspelled in here. Clearly the word has been misspelled since it's inception, but since we can't change English, let's update it here.

8 years agoSkip port test if not unix 1935/head
Mircea Ulinic [Tue, 7 Feb 2017 15:44:32 +0000 (15:44 +0000)] 
Skip port test if not unix

8 years agoweb: Remove obsolete doc about stream_request_body and async prepare
Ben Darnell [Sun, 5 Feb 2017 22:58:38 +0000 (17:58 -0500)] 
web: Remove obsolete doc about stream_request_body and async prepare

Fixes #1933

8 years agoqueues: Call out thread-unsafety in docs
Ben Darnell [Sun, 5 Feb 2017 22:43:39 +0000 (17:43 -0500)] 
queues: Call out thread-unsafety in docs

Fixes #1923

8 years agoAdd tests for source_ip and source_port
Mircea Ulinic [Wed, 1 Feb 2017 13:18:46 +0000 (13:18 +0000)] 
Add tests for source_ip and source_port

8 years agoAdded option for triggering callbacks when PING frame is received 1938/head
Artur Stawiarski [Wed, 1 Feb 2017 14:24:25 +0000 (14:24 +0000)] 
Added option for triggering callbacks when PING frame is received
In order to implement proper application-level handling of disconnections
a developer may want to hook up into the standard "ping" mechanism
of the websocket protocol. This is important for systems where
both the client and the server need to keep track of disconnections,
but based on client-intiated pings only.

8 years agoSupport also source_port
Mircea Ulinic [Wed, 1 Feb 2017 12:02:36 +0000 (12:02 +0000)] 
Support also source_port

8 years agoRemove source_ip from _Connector init kwargs
Mircea Ulinic [Wed, 1 Feb 2017 11:36:31 +0000 (11:36 +0000)] 
Remove source_ip from _Connector init kwargs

8 years agoMove bindin into _create_stream
Mircea Ulinic [Wed, 1 Feb 2017 11:31:30 +0000 (11:31 +0000)] 
Move bindin into _create_stream

8 years agoMerge branch 'master' into break-circrefs 1936/head
Alexander Karpinsky [Fri, 27 Jan 2017 01:16:50 +0000 (04:16 +0300)] 
Merge branch 'master' into break-circrefs

8 years agocleanups for python3
Alexander [Fri, 27 Jan 2017 01:07:35 +0000 (04:07 +0300)] 
cleanups for python3

8 years agoadd test
Alexander [Fri, 27 Jan 2017 00:08:27 +0000 (03:08 +0300)] 
add test
add description

8 years agorelease exc_info even when exception is thrown
Alexander [Thu, 26 Jan 2017 21:28:03 +0000 (00:28 +0300)] 
release exc_info even when exception is thrown
remove extra references to the futures

8 years agoTCPClient: connect using specific source IP address
Mircea Ulinic [Wed, 25 Jan 2017 11:45:31 +0000 (11:45 +0000)] 
TCPClient: connect using specific source IP address

8 years agoMerge pull request #1932 from tao12345666333/master
A. Jesse Jiryu Davis [Tue, 24 Jan 2017 14:13:33 +0000 (09:13 -0500)] 
Merge pull request #1932 from tao12345666333/master

Fix document PyPI download url

8 years agoFix document download url on pypi. 1932/head
TaoBeier [Tue, 24 Jan 2017 09:39:37 +0000 (17:39 +0800)] 
Fix document download url on pypi.

8 years agocopy handler list in IOLoop.close(all_fds=True) 1927/head
Min RK [Wed, 11 Jan 2017 10:22:00 +0000 (11:22 +0100)] 
copy handler list in IOLoop.close(all_fds=True)

avoids modifying dict during iteration if close method on fd triggers something like `IOLoop.remove_handler`

8 years agoFix Sphinx
James Maier [Mon, 9 Jan 2017 05:07:26 +0000 (00:07 -0500)] 
Fix Sphinx

8 years agoWebSocket: misc. from code review
James Maier [Mon, 9 Jan 2017 03:52:02 +0000 (22:52 -0500)] 
WebSocket: misc. from code review

8 years agoWebSocket: disable RequestHandler methods by patching the instance
James Maier [Mon, 9 Jan 2017 03:45:15 +0000 (22:45 -0500)] 
WebSocket: disable RequestHandler methods by patching the instance

8 years agoWebSocket: fix 426 error code
James Maier [Mon, 9 Jan 2017 03:11:51 +0000 (22:11 -0500)] 
WebSocket: fix 426 error code

8 years agoMerge pull request #1924 from duboviy/master
Ben Darnell [Sun, 8 Jan 2017 18:57:07 +0000 (13:57 -0500)] 
Merge pull request #1924 from duboviy/master

Add Python 3.6 support

8 years agoMerge pull request #1899 from mr-ping/master
Ben Darnell [Sun, 8 Jan 2017 18:54:17 +0000 (13:54 -0500)] 
Merge pull request #1899 from mr-ping/master

Rewrite url_concat function using PythonStandardLibrary

8 years agoAdd Python 3.6 support 1924/head
Eugene Dubovoy [Sun, 8 Jan 2017 16:19:30 +0000 (18:19 +0200)] 
Add Python 3.6 support

8 years agoDo WebSocket upgrade using RequestHandler, allowing set_default_headers
James Maier [Fri, 23 Dec 2016 16:01:42 +0000 (11:01 -0500)] 
Do WebSocket upgrade using RequestHandler, allowing set_default_headers

8 years agoAdd upgrade_response_headers to docs/websocket.rst
James Maier [Tue, 20 Dec 2016 20:32:22 +0000 (15:32 -0500)] 
Add upgrade_response_headers to docs/websocket.rst

8 years agoAllow custom websocket upgrade response headers via upgrade_response_headers
James Maier [Tue, 20 Dec 2016 20:04:12 +0000 (15:04 -0500)] 
Allow custom websocket upgrade response headers via upgrade_response_headers

8 years agoMerge pull request #1916 from SuminAndrew/routing-docs
A. Jesse Jiryu Davis [Tue, 20 Dec 2016 14:25:07 +0000 (08:25 -0600)] 
Merge pull request #1916 from SuminAndrew/routing-docs

improve routing module docs and tests

8 years agoimprove routing module docs and tests 1916/head
Andrew Sumin [Sat, 17 Dec 2016 16:56:17 +0000 (19:56 +0300)] 
improve routing module docs and tests

8 years agoMerge pull request #1806 from SuminAndrew/routing
Ben Darnell [Sat, 17 Dec 2016 04:18:42 +0000 (12:18 +0800)] 
Merge pull request #1806 from SuminAndrew/routing

implement routing mechanism

8 years agoMerge pull request #1906 from ajdavis/handle-stream-native-coro
Ben Darnell [Tue, 13 Dec 2016 13:46:01 +0000 (21:46 +0800)] 
Merge pull request #1906 from ajdavis/handle-stream-native-coro

tcpserver: handle_stream can be a native coroutine

8 years agoMerge pull request #1911 from medariox/patch-1
Ben Darnell [Tue, 13 Dec 2016 12:57:11 +0000 (20:57 +0800)] 
Merge pull request #1911 from medariox/patch-1

Catch AttributeError in cpu_count()

8 years agoMerge branch 'master' into handle-stream-native-coro 1906/head
Ben Darnell [Tue, 13 Dec 2016 12:54:15 +0000 (20:54 +0800)] 
Merge branch 'master' into handle-stream-native-coro

8 years agoMerge pull request #1910 from ajdavis/preload-latin1
Ben Darnell [Tue, 13 Dec 2016 12:52:37 +0000 (20:52 +0800)] 
Merge pull request #1910 from ajdavis/preload-latin1

netutil: Preload the "latin1" codec

8 years agoMerge pull request #1908 from takluyver/i1907
Ben Darnell [Tue, 13 Dec 2016 12:47:40 +0000 (20:47 +0800)] 
Merge pull request #1908 from takluyver/i1907

Use errno_from_exception on error caught in Waker

8 years agoMerge pull request #1902 from pitrou/tcpserver_stop_twice
Ben Darnell [Tue, 13 Dec 2016 12:43:36 +0000 (20:43 +0800)] 
Merge pull request #1902 from pitrou/tcpserver_stop_twice

Fix #1901: fix TCPServer.stop() when called twice

8 years agoCatch AttributeError in cpu_count() 1911/head
Dario [Sun, 11 Dec 2016 16:57:31 +0000 (17:57 +0100)] 
Catch AttributeError in cpu_count()

Running
```Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:24:40) [MSC v.1500 64 bit (AMD64)] on win32```
on Windows 10 64 Bit

Noticed this issue while running ```tox``` with ```pytest tornado 0.4.5``` and ```tornado 4.4.2```.

8 years agonetutil: Preload the "latin1" codec 1910/head
A. Jesse Jiryu Davis [Sat, 10 Dec 2016 12:34:31 +0000 (07:34 -0500)] 
netutil: Preload the "latin1" codec

For reasons not yet understood, some Solaris users get intermittent
"LookupError: unknown encoding: latin1", this has been reported to
fix it.

Fixes #584

8 years agoUse errno_from_exception on error caught in Waker 1908/head
Thomas Kluyver [Wed, 7 Dec 2016 10:14:05 +0000 (11:14 +0100)] 
Use errno_from_exception on error caught in Waker

Addresses part of gh-1907

8 years agotcpserver: handle_stream can be a native coroutine
A. Jesse Jiryu Davis [Mon, 5 Dec 2016 11:37:19 +0000 (06:37 -0500)] 
tcpserver: handle_stream can be a native coroutine

8 years agoFix #1901: fix TCPServer.stop() when called twice 1902/head
Antoine Pitrou [Wed, 30 Nov 2016 16:40:46 +0000 (17:40 +0100)] 
Fix #1901: fix TCPServer.stop() when called twice

8 years agoallow HTTPServerConnectionDelegate as routing targets 1806/head
Andrey Sumin [Tue, 29 Nov 2016 08:41:02 +0000 (11:41 +0300)] 
allow HTTPServerConnectionDelegate as routing targets

8 years agoRewrite url_concat function using PythonStandardLibrary 1899/head
Ping [Thu, 24 Nov 2016 06:19:11 +0000 (14:19 +0800)] 
Rewrite url_concat function using PythonStandardLibrary

8 years agoMerge pull request #1889 from pitrou/future_warnings_at_shutdown
Ben Darnell [Sun, 20 Nov 2016 13:51:19 +0000 (21:51 +0800)] 
Merge pull request #1889 from pitrou/future_warnings_at_shutdown

Avoid spurious warnings at shutdown

8 years agoUpdate warning config to fix tests on python 3.6 nightly
Ben Darnell [Sun, 20 Nov 2016 12:30:49 +0000 (20:30 +0800)] 
Update warning config to fix tests on python 3.6 nightly

8 years agoMerge pull request #1893 from pitrou/coverage_failure_py3_c_locale
Ben Darnell [Sun, 20 Nov 2016 12:13:24 +0000 (20:13 +0800)] 
Merge pull request #1893 from pitrou/coverage_failure_py3_c_locale

Fix error in coverage runs under Py3 with a C locale

8 years agoMerge pull request #1890 from pitrou/coroutine_introspection
Ben Darnell [Sun, 20 Nov 2016 09:40:34 +0000 (17:40 +0800)] 
Merge pull request #1890 from pitrou/coroutine_introspection

Improve introspection of coroutines

8 years agoMerge pull request #1881 from ajdavis/file-example
Ben Darnell [Sun, 20 Nov 2016 09:14:48 +0000 (17:14 +0800)] 
Merge pull request #1881 from ajdavis/file-example

docs: Demonstrate uploading and receiving files

8 years agoadd docs for web module
Andrey Sumin [Tue, 15 Nov 2016 10:50:09 +0000 (13:50 +0300)] 
add docs for web module

8 years agoFix error in coverage runs under Py3 with a C locale 1893/head
Antoine Pitrou [Wed, 16 Nov 2016 10:57:00 +0000 (11:57 +0100)] 
Fix error in coverage runs under Py3 with a C locale

8 years agoFix for PyPy 1889/head
Antoine Pitrou [Tue, 15 Nov 2016 11:41:16 +0000 (12:41 +0100)] 
Fix for PyPy

8 years agoImprove introspection of coroutines 1890/head
Antoine Pitrou [Tue, 15 Nov 2016 11:35:29 +0000 (12:35 +0100)] 
Improve introspection of coroutines

8 years agoAvoid referencing globals in emulated is_finalizing()
Antoine Pitrou [Tue, 15 Nov 2016 09:44:16 +0000 (10:44 +0100)] 
Avoid referencing globals in emulated is_finalizing()

8 years agoAvoid spurious warnings at shutdown
Antoine Pitrou [Tue, 15 Nov 2016 09:38:18 +0000 (10:38 +0100)] 
Avoid spurious warnings at shutdown

When there are still active coroutines at interpreter shutdown, you can
see sometimes warnings such as:

Exception ignored in: <bound method Future.__del__ of <tornado.concurrent.Future object at 0x7f56a8b142e8>>
Traceback (most recent call last):
  File "/home/antoine/tornado/tornado/concurrent.py", line 338, in __del__
TypeError: 'NoneType' object is not callable

These are distracting and don't bear any useful information, so silence them.

8 years agoadd docs for routing module
Andrey Sumin [Thu, 10 Nov 2016 10:39:35 +0000 (13:39 +0300)] 
add docs for routing module

8 years ago[WIP] routing mechanism draft
Andrey Sumin [Thu, 15 Sep 2016 11:02:42 +0000 (14:02 +0300)] 
[WIP] routing mechanism draft

8 years agoMerge branch 'master' of https://github.com/tornadoweb/tornado into bytearray_buffers 1873/head
Antoine Pitrou [Wed, 9 Nov 2016 21:22:08 +0000 (22:22 +0100)] 
Merge branch 'master' of https://github.com/tornadoweb/tornado into bytearray_buffers

8 years agoAdd comments and a docstring
Antoine Pitrou [Tue, 8 Nov 2016 22:17:59 +0000 (23:17 +0100)] 
Add comments and a docstring

8 years agoMerge pull request #1867 from ajdavis/redirecthandler-url-pattern
A. Jesse Jiryu Davis [Sat, 5 Nov 2016 15:59:21 +0000 (11:59 -0400)] 
Merge pull request #1867 from ajdavis/redirecthandler-url-pattern

web: Add regex support to RedirectHandler

8 years agodocs: Demonstrate uploading and receiving files 1881/head
A. Jesse Jiryu Davis [Sat, 5 Nov 2016 01:42:01 +0000 (21:42 -0400)] 
docs: Demonstrate uploading and receiving files

8 years agoweb: Add regex support to RedirectHandler 1867/head
A. Jesse Jiryu Davis [Fri, 28 Oct 2016 03:03:35 +0000 (23:03 -0400)] 
web: Add regex support to RedirectHandler

The docs had wrongly claimed this was supported before. Implement it,
and update the docs to show the str.format-style syntax we chose.

Closes #1861.

8 years agoMerge pull request #1862 from SuminAndrew/httpserver-adapters-refactor
Ben Darnell [Fri, 4 Nov 2016 04:03:34 +0000 (12:03 +0800)] 
Merge pull request #1862 from SuminAndrew/httpserver-adapters-refactor

refactor httpserver request adapters

8 years agoMerge pull request #1876 from pitrou/lockless_add_callback
Ben Darnell [Fri, 4 Nov 2016 04:00:48 +0000 (12:00 +0800)] 
Merge pull request #1876 from pitrou/lockless_add_callback

Lockless implementation of add_callback

8 years agoAlso catch "ValueError: I/O operation on closed file" 1876/head
Antoine Pitrou [Thu, 3 Nov 2016 10:57:33 +0000 (11:57 +0100)] 
Also catch "ValueError: I/O operation on closed file"

8 years agoTry to fix spurious close() errors
Antoine Pitrou [Thu, 3 Nov 2016 10:44:30 +0000 (11:44 +0100)] 
Try to fix spurious close() errors

8 years agoDo what it says on the tin
Antoine Pitrou [Thu, 3 Nov 2016 10:23:39 +0000 (11:23 +0100)] 
Do what it says on the tin

8 years agoLockless implementation of add_callback
Antoine Pitrou [Thu, 3 Nov 2016 09:48:55 +0000 (10:48 +0100)] 
Lockless implementation of add_callback

Fixes #1874.

8 years agoFix freezing the SSL write buffer
Antoine Pitrou [Tue, 1 Nov 2016 23:41:05 +0000 (00:41 +0100)] 
Fix freezing the SSL write buffer

8 years agoRemove erroneous comment
Antoine Pitrou [Tue, 1 Nov 2016 21:06:50 +0000 (22:06 +0100)] 
Remove erroneous comment

8 years agoFix handling _write_buffer_frozen
Antoine Pitrou [Tue, 1 Nov 2016 21:02:43 +0000 (22:02 +0100)] 
Fix handling _write_buffer_frozen

8 years agoDelete from the bytearray's front, instead of creating a new object
Antoine Pitrou [Tue, 1 Nov 2016 20:50:18 +0000 (21:50 +0100)] 
Delete from the bytearray's front, instead of creating a new object

8 years agoAllow memoryview in write()
Antoine Pitrou [Tue, 1 Nov 2016 20:39:39 +0000 (21:39 +0100)] 
Allow memoryview in write()

8 years agoUse bytearray buffers in IOStream
Antoine Pitrou [Tue, 1 Nov 2016 20:28:17 +0000 (21:28 +0100)] 
Use bytearray buffers in IOStream

8 years agorefactor httpserver request adapters 1862/head
Andrey Sumin [Thu, 20 Oct 2016 11:31:15 +0000 (14:31 +0300)] 
refactor httpserver request adapters

8 years agoAdd a `trusted_downstream` argument to HTTPServer, allowing trusted proxy hosts to... 1864/head
Leynos [Sun, 23 Oct 2016 14:40:29 +0000 (15:40 +0100)] 
Add a `trusted_downstream` argument to HTTPServer, allowing trusted proxy hosts to be skipped in the `X-Forwarded-For` chain when using the `xheaders` option.

8 years agoMerge pull request #1857 from SuminAndrew/default-host-test
Ben Darnell [Thu, 13 Oct 2016 05:11:27 +0000 (13:11 +0800)] 
Merge pull request #1857 from SuminAndrew/default-host-test

add unit tests for an application with default_host

8 years agoMerge pull request #1844 from ajdavis/document-httprequest-timeout
Ben Darnell [Thu, 13 Oct 2016 04:58:54 +0000 (12:58 +0800)] 
Merge pull request #1844 from ajdavis/document-httprequest-timeout

httpclient: Document the defaults.

8 years agoadd unit tests for an application with default_host 1857/head
Andrey Sumin [Sun, 2 Oct 2016 14:36:49 +0000 (17:36 +0300)] 
add unit tests for an application with default_host

8 years agohttpclient: Document the defaults. 1844/head
A. Jesse Jiryu Davis [Fri, 23 Sep 2016 14:01:29 +0000 (10:01 -0400)] 
httpclient: Document the defaults.

8 years agoMerge remote-tracking branch 'origin/branch4.4'
Ben Darnell [Sat, 1 Oct 2016 04:38:04 +0000 (12:38 +0800)] 
Merge remote-tracking branch 'origin/branch4.4'

8 years agoMerge pull request #1852 from bdarnell/parse-cookie v4.4.2
A. Jesse Jiryu Davis [Fri, 30 Sep 2016 22:38:48 +0000 (18:38 -0400)] 
Merge pull request #1852 from bdarnell/parse-cookie

httputil: Rewrite cookie parsing

8 years agoRelease notes and version bump for 4.4.2 1852/head
Ben Darnell [Fri, 30 Sep 2016 16:03:23 +0000 (00:03 +0800)] 
Release notes and version bump for 4.4.2

8 years agohttputil: Rewrite cookie parsing
Ben Darnell [Fri, 30 Sep 2016 15:39:29 +0000 (23:39 +0800)] 
httputil: Rewrite cookie parsing

Move from the python standard library to a parsing function copied from
Django. This parser more closely matches browser behavior. The primary
motivation is that differences between server-side and browser cookie
parsing can lead to an XSRF bypass, as in
https://hackerone.com/reports/26647. A secondary benefit is that this
makes it possible to work with cookie headers containing cookies that
are invalid according to the spec, which is a surprisingly common
request.

Closes #1851
Closes #633
Closes #1434
Closes #1176

8 years agoUpdate reference to asyncio's add_reader doc
A. Jesse Jiryu Davis [Thu, 11 Aug 2016 19:24:27 +0000 (15:24 -0400)] 
Update reference to asyncio's add_reader doc

8 years agoMerge pull request #1838 from ajdavis/issue-1803-callback-returns-dict
Ben Darnell [Thu, 22 Sep 2016 13:29:13 +0000 (21:29 +0800)] 
Merge pull request #1838 from ajdavis/issue-1803-callback-returns-dict

io_loop: Don't spin CPU if callback returns {}

8 years agoio_loop: Don't spin CPU if callback returns {} 1838/head
A. Jesse Jiryu Davis [Wed, 21 Sep 2016 19:47:39 +0000 (15:47 -0400)] 
io_loop: Don't spin CPU if callback returns {}

Fixes an infinite loop by preventing _run_callback from directly calling
add_callback again when a callback returns {} or [].

8 years agoMerge pull request #1834 from tornadoweb/stable
Ben Darnell [Wed, 21 Sep 2016 03:06:28 +0000 (11:06 +0800)] 
Merge pull request #1834 from tornadoweb/stable

Merge pull request #1808 from darabos/patch-1

8 years agoMerge pull request #1825 from samueldg/fix/testing_typos
Ben Darnell [Sun, 11 Sep 2016 12:17:28 +0000 (20:17 +0800)] 
Merge pull request #1825 from samueldg/fix/testing_typos

Fix various typos in testing.py

8 years agoMerge pull request #1821 from lilydjwg/master
Ben Darnell [Sun, 11 Sep 2016 12:00:15 +0000 (20:00 +0800)] 
Merge pull request #1821 from lilydjwg/master

tcpclient: try next address when protocol not supported

8 years agotcpclient: catch any `socket()` errors 1821/head
依云 [Mon, 5 Sep 2016 10:03:36 +0000 (18:03 +0800)] 
tcpclient: catch any `socket()` errors

so we can try next addresses, e.g. when trying to connect to IPv6
addresses on OSes with IPv6 disabled which fails with a protocol not
supported error

This fixes #1809.