virajrai-oai
34420d4264
Preserve disconnect reasons in Noise handshake errors ( #54637 )
...
## Why
Noise handshake failures before connection readiness returned a generic error even when the transport had reported a specific disconnect reason. No `RpcClient` was reading the connection event channel at that point.
## What changed
Read the pending disconnect event when a Noise rendezvous handshake fails and append its reason to the handshake error when available.
## Testing
Add a regression test covering unexpected text frames and relay stream resets, checking that each produces the expected transport reason in the handshake error.
GitOrigin-RevId: 9b8ef9c8dcba75b46d51dc67784af46d4ca74b85
2026-10-16 15:43:21 +00:00
..
2026-10-09 23:28:38 +00:00
2026-10-13 20:40:38 +00:00
2026-10-13 18:15:50 +00:00
2026-10-06 23:20:40 +00:00
2026-09-26 23:17:41 +00:00
2026-08-15 03:00:35 +00:00
2026-10-15 16:47:55 +00:00
2026-10-07 21:52:20 +00:00
2026-10-13 18:15:50 +00:00
2026-07-21 08:59:41 +00:00
2026-09-23 00:48:53 +00:00
2026-10-13 18:15:50 +00:00
2026-09-23 22:20:34 +00:00
2026-09-03 20:01:07 +00:00
2026-10-09 19:22:21 +00:00
2026-09-22 21:07:20 +00:00
2026-09-22 21:07:20 +00:00
2026-08-20 18:48:17 +00:00
2026-09-23 00:48:53 +00:00
2026-10-13 18:15:50 +00:00
2026-10-09 23:28:38 +00:00
2026-09-04 23:06:00 +00:00
2026-10-16 15:43:21 +00:00
2026-10-16 15:43:21 +00:00
2026-10-16 04:42:32 +00:00
2026-10-15 00:00:57 +00:00
2026-10-05 18:54:17 +00:00
2026-10-05 18:54:17 +00:00
2026-10-07 00:29:04 +00:00
2026-10-07 00:29:04 +00:00
2026-10-05 18:54:17 +00:00
2026-10-05 18:54:17 +00:00
2026-10-13 17:22:34 +00:00
2026-10-02 03:31:52 +00:00
2026-10-02 04:25:52 +00:00
2026-09-02 21:58:58 +00:00
2026-08-18 18:15:21 +00:00
2026-10-02 04:25:52 +00:00
2026-10-02 04:25:52 +00:00
2026-10-09 11:08:24 +00:00
2026-10-07 21:52:43 +00:00
2026-10-13 20:40:38 +00:00
2026-08-20 08:10:08 +00:00
2026-09-30 18:18:03 +00:00
2026-10-02 04:25:52 +00:00
2026-10-16 04:42:32 +00:00
2026-10-15 22:25:58 +00:00
2026-07-25 16:03:00 +00:00
2026-07-25 16:03:00 +00:00
2026-07-21 13:39:33 +00:00
2026-10-15 14:41:16 +00:00
2026-10-15 22:25:58 +00:00
2026-09-23 22:10:28 +00:00
2026-09-13 06:07:03 +00:00
2026-08-18 13:36:16 +00:00
2026-10-02 04:25:52 +00:00
2026-09-26 23:17:41 +00:00
2026-10-06 23:07:25 +00:00
2026-10-06 23:07:25 +00:00
2026-10-06 23:07:25 +00:00
2026-10-01 00:43:55 +00:00
2026-10-16 02:39:49 +00:00
2026-10-16 04:42:32 +00:00
2026-07-30 19:23:33 +00:00
2026-10-15 16:47:55 +00:00
2026-07-20 13:45:29 +00:00
2026-09-04 23:06:00 +00:00
2026-09-29 18:34:48 +00:00
2026-09-22 21:07:20 +00:00
2026-09-22 21:07:20 +00:00
2026-09-23 22:10:28 +00:00
2026-09-29 18:34:48 +00:00
2026-10-07 00:29:04 +00:00
2026-09-17 18:20:28 +00:00
2026-10-02 04:25:52 +00:00
2026-09-26 23:17:41 +00:00
2026-10-07 21:52:43 +00:00
2026-09-26 23:17:41 +00:00
2026-10-15 22:25:58 +00:00
2026-09-25 12:23:15 +00:00
2026-09-25 12:23:15 +00:00
2026-10-01 00:48:08 +00:00
2026-10-15 22:25:58 +00:00
2026-10-15 22:25:58 +00:00
2026-10-06 11:43:45 +00:00
2026-08-17 20:36:10 +00:00
2026-07-01 14:15:34 -07:00
2026-07-01 14:15:34 -07:00