etcd-cpp-apiv3/tst
zhangxiaoyu.york 662573b6bf
feature:support ipv6 address (#280)
Problem Summary:
Now the etcd client address do not support host format such as
http://[ipv6]:port.

and [RFC
3986](https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.2)
```
A host identified by an Internet Protocol literal address, version 6
[[RFC3513](https://datatracker.ietf.org/doc/html/rfc3513)] or later, is distinguished by enclosing the IP literal
within square brackets ("[" and "]").  This is the only place where
square bracket characters are allowed in the URI syntax.  In
anticipation of future, as-yet-undefined IP literal address formats,
an implementation may use an optional version flag to indicate such a
format explicitly rather than rely on heuristic determination.

      IP-literal = "[" ( IPv6address / IPvFuture  ) "]"
```
the ipv6 address is distinguished by enclosing the IP literal within
square brackets ("[" and "]").

What is changed and how it works:
if we find the host part of a URL starts with a "[" and ends with a "]".
it will be specifically judged whether it is a valid IPv6 address. If it
is a valid address, it can be returned directly without call the
`getaddrinfo` interface.
2024-11-12 10:13:53 +08:00
..
AuthTest.cpp Format source code using clformat (#233) 2023-07-01 20:49:16 +08:00
CMakeLists.txt Enable -fno-exceptions support (#261) 2023-12-20 09:18:10 +08:00
CampaignTest.cpp Format source code using clformat (#233) 2023-07-01 20:49:16 +08:00
ElectionTest.cpp Format source code using clformat (#233) 2023-07-01 20:49:16 +08:00
EtcdMemberTest.cpp Add the cluster manager api. (#276) 2024-08-02 10:30:43 +08:00
EtcdResolverTest.cpp feature:support ipv6 address (#280) 2024-11-12 10:13:53 +08:00
EtcdSyncTest.cpp Fix/add failure behavior #266 (#267) 2024-03-13 21:29:03 +08:00
EtcdTest.cpp Refactor the implementation of etcd transactions. (#236) 2023-07-15 17:07:34 +08:00
ForkTest.cpp Format source code using clformat (#233) 2023-07-01 20:49:16 +08:00
KeepAliveTest.cpp Enable -fno-exceptions support (#261) 2023-12-20 09:18:10 +08:00
LockTest.cpp Enable -fno-exceptions support (#261) 2023-12-20 09:18:10 +08:00
MemLeakTest.cpp Enable -fno-exceptions support (#261) 2023-12-20 09:18:10 +08:00
MemLeakWatcherTest.cpp Format source code using clformat (#233) 2023-07-01 20:49:16 +08:00
RewatchTest.cpp Enable -fno-exceptions support (#261) 2023-12-20 09:18:10 +08:00
SecurityChannelTest.cpp Format source code using clformat (#233) 2023-07-01 20:49:16 +08:00
TransactionTest.cpp Refactor the implementation of etcd transactions. (#236) 2023-07-15 17:07:34 +08:00
WatcherTest.cpp Add a test to show that two watchers can co-work 2024-03-13 21:21:34 +08:00