Files
Nim/tests/async
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
..
2016-07-19 20:44:08 +02:00
2017-02-05 17:14:49 +01:00
2016-09-07 12:19:06 +03:00
2016-09-07 12:51:18 +03:00
2016-09-17 14:19:26 +02:00
2016-07-08 18:08:34 +02:00
2016-10-20 15:20:27 +02:00
2016-01-05 10:20:24 +01:00
2014-09-09 01:17:07 +01:00
2016-01-11 11:11:44 +01:00
2016-09-17 13:22:04 +02:00
2016-07-08 10:34:12 +02:00
2017-02-04 12:10:07 +01:00