806d357569
QuicWebTransportFactory threw `:status=0` for every distinct CONNECT failure mode — relay never answered, relay FIN'd the request bidi with no H3 response, relay sent a HEADERS frame lacking :status, or the whole connection was torn down by a CONNECTION_CLOSE. The four cases need different fixes but produced identical, undiagnosable errors. readConnectResponse now records bytes/H3-frames seen on the request stream and reports which of those cases occurred; the thrown exception also carries a connection-state snapshot (conn.status, closeReason, closeErrorCode, requestStreamClosed) captured before driver.close(), so a relay CONNECTION_CLOSE (e.g. H3_SETTINGS_ERROR from a rejected SETTINGS frame) is distinguishable from a request-stream-only close. https://claude.ai/code/session_01PoQupfdoKU3ryQwLwTeXeM