connect_stream applies connect_timeout per resolved address, not per endpoint, contradicting the doc comment ("TCP connect timeout per endpoint attempt"). A hostname resolving to two addresses multiplies every bound: measured 2.0011s for two blackhole addresses at a 1s timeout.
Fix: give connect_stream a single total deadline across all resolved addresses, so the timeout bounds the endpoint attempt as documented.
connect_streamappliesconnect_timeoutper resolved address, not per endpoint, contradicting the doc comment ("TCP connect timeout per endpoint attempt"). A hostname resolving to two addresses multiplies every bound: measured 2.0011s for two blackhole addresses at a 1s timeout.Fix: give
connect_streama single total deadline across all resolved addresses, so the timeout bounds the endpoint attempt as documented.