Enhance transports

* Support IPv6 schema
* Add transport integration tests
* Add UNIX socket server
This commit is contained in:
Josh Wu
2025-08-18 16:12:48 +08:00
parent 3b8dd6f3cf
commit bb2aa8229d
10 changed files with 238 additions and 45 deletions

View File

@@ -41,7 +41,7 @@ async def open_tcp_client_transport(spec: str) -> Transport:
logger.debug(f'connection lost: {exc}')
self.on_transport_lost()
remote_host, remote_port = spec.split(':')
remote_host, remote_port = spec.rsplit(':', maxsplit=1)
tcp_transport, packet_source = await asyncio.get_running_loop().create_connection(
TcpPacketSource,
host=remote_host,