mirror of
https://github.com/hanzoai/kafka.git
synced 2026-10-30 14:48:25 +00:00
Serve is now Connect (dial the bus, ensure the offset bucket, watch tails, bound partitions, start admin) followed by a TCP listener and Accept on it, with the same behaviour as before. A host that owns the Kafka port itself calls Connect, which fails as soon as the bus refuses rather than after a startup timer, and then Accept on a unix socket it relays to. Metadata and FindCoordinator keep advertising Config.BrokerHost:BrokerPort, never the listener's own address. Accept closes a listener that a Shutdown before it never saw, and returns the error when its listener is closed by anything but Shutdown instead of retrying a dead socket. Co-authored-by: Hanzo Dev <[email protected]>