Files
Nim/tests/stdlib
Ruslan Mustakov ecf278c467 Implement dial, support IPv6 in httpclient (#5763)
* Implement dial, support IPv6 in httpclient

Added ``dial`` procedure to networking modules: ``net``, ``asyncdispatch``,
``asyncnet``. It merges socket creation, address resolution, and connection
into single step. When using ``dial``, you don't have to worry about
IPv4 vs IPv6 problem.

Fixed addrInfo loop in connect to behave properly.
Previously it would stop on first non-immediate failure, instead of
continuing and trying the remaining addresses.

Fixed newAsyncNativeSocket to raise proper error if socket creation
fails.

Fixes: #3811

* Check domain during connect() only on non-Windows

This is how it was in the previous implementation of connect().

* Call 'osLastError' before 'close' in net.dial

* Record osLastError before freeAddrInfo in net.dial

* Add missing docs for 'dial' proc

* Optimize dial to create one FD per domain, add tests

And make async IPv6 servers work on Windows.

* Add IPv6 test to uri module

* Fix getAddrString error handling
2017-05-02 09:25:50 +02:00
..
2017-03-03 01:30:49 +01:00
2017-02-13 13:35:40 +01:00
2015-03-12 11:08:03 +01:00
2014-01-13 02:10:03 +01:00
2014-08-29 09:12:12 +02:00
2014-07-19 14:37:47 +02:00
2014-01-13 02:10:03 +01:00
2015-06-20 11:37:29 +01:00
2017-04-17 20:04:24 +02:00
2015-08-03 12:35:57 -04:00
2015-08-03 12:35:57 -04:00
2015-08-03 12:35:57 -04:00
2015-03-31 00:32:39 +02:00
2017-01-10 11:27:03 +01:00
2016-01-15 14:44:54 +01:00
2016-07-01 07:24:30 -06:00
2015-09-27 15:49:40 +10:00
2014-01-13 02:10:03 +01:00
2017-02-01 12:13:01 +01:00
2014-08-29 09:12:12 +02:00
2015-08-21 21:40:24 +02:00
2014-08-29 09:12:12 +02:00
2016-11-30 10:38:22 +07:00