- closes sessions inline when the listener's event loop closes them (expiry scan, failed connect), instead of queueing a close event that only the loop itself can receive - keeps Close's blocking queue send for other callers, so a close still reaches the loop ahead of anything queued after it, and has Close release any QueueRead waiting on the session first - has QueueRead deliver whenever the read buffer has room and stop waiting once the session is closed, so the loop cannot block on a reader that has stopped - marks activity directly in Write rather than queueing an update event per packet, holding the timeout in an atomic - matches a transport_udp connect response to the session it was made for rather than the session now registered at that address, and drops it when a new session has replaced that one, since the client would take any reply as the answer to its new attempt - tests that the loop's session calls never wait on the loop, that a close releases a waiting read, that reads which fit are still delivered while closing, that a close queued before a connect response is handled first, and that a stale response leaves a replacement session alone - tests that a proxy-mode virtual UDP connection closes its write conn only when it owns it, leaving the listener it shares with the service's other clients open, since the tunneler UDP data flow test no longer exercises that close (the fix for #3540) - notes the fix in the changelog
Ziti Router Components
This document describes the key components of the Ziti router architecture.
Core Components
NetworkControllers
Manages connections to Ziti controllers. Handles controller discovery, connection establishment, failover, and maintains heartbeats. Routes control plane messages between the router and controllers.
Link Registry
Maintains the registry of active links to other routers in the mesh. Tracks link states, manages link lifecycle, and provides link lookup capabilities for routing decisions.
Forwarder
The packet forwarding engine that routes data between xgress instances. Delivers payloads to links, xgress instances or edge forwarders.
Faulter
Monitors link health and detects failures. Automatically reports link faults to controllers and triggers link recovery processes when connectivity issues are detected.
Scanner
Continuously scans the forwarder's state to detect and clean up stale forwarding entries. Removes inactive circuits and performs periodic maintenance of the forwarding tables.
Data Plane Components
Xgress Components
Handle ingress and egress traffic for the router:
- Xgress Listeners: Accept incoming connections from clients and services
- Xgress Dialers: Establish outbound connections to services
- Xgress Factories: Create protocol-specific xgress instances (edge, transport, proxy, tunnel)
- Xgress Registry: Global registry managing all xgress factory types
Xgress Types
edge: Handles Ziti SDK connectionstransport: Router-to-router communicationproxy: TCP/UDP proxy connectionstunnel: Intercepted traffic from tunneling clients
Metrics
Comprehensive metrics collection covering:
- Link latency and throughput
- Xgress connection statistics
- Pool utilization (link dialer, egress dialer, rate limiter)
All metrics are reported to controllers and available via health check APIs.