Yxxx and mostlykiguess
be52d3b757
repl: Retry iopub connection on failure ( #62358 )
...
## Context
This is a rebase of #52302 , which was approved by @Veykril in May but
still needed a rebase before it could be merged — it seems the original
author @MostlyKIGuess forgot about it. I rely on this fix daily for REPL
over SSH on an unstable connection and need it rather urgently, so I
cherry-picked the original commit (with authorship preserved) and
resubmitted it as a new PR.
Closes #51834
Supersedes #52302
## How to Review
The code itself was already reviewed and approved in #52302 . This PR
only rebases it onto latest `main`, with one simple conflict resolution
against #53014 : when all retries are exhausted, the error now uses the
improved message from that PR (suggesting `pip install ipykernel` on the
remote host) instead of the plain one. Comparing this diff against the
original PR's diff should make the review straightforward.
## Self-Review Checklist
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist )
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md )
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable
Release Notes:
- repl: Fixed iopub connection failures over SSH on slow or unstable
connections by retrying with exponential backoff.
Co-authored-by: mostlykiguess <bruvistrue93@gmail.com >
2026-08-08 14:59:07 +00:00
..
2026-07-31 19:57:13 +00:00
2026-06-22 09:04:29 +00:00
2026-07-31 19:57:13 +00:00
2026-07-13 16:37:28 +00:00
2026-08-06 12:59:28 +00:00
2026-07-27 11:30:39 +00:00
2026-07-29 13:03:22 +00:00
2026-06-08 14:57:47 +00:00
2026-08-07 10:16:57 +00:00
2026-08-07 10:16:57 +00:00
2026-07-27 12:07:31 +00:00
2026-07-20 16:14:26 +00:00
2026-06-05 16:49:42 +00:00
2026-07-07 10:23:28 +00:00
2026-05-01 22:33:54 +00:00
2026-06-07 16:55:18 +00:00
2026-07-27 15:59:19 +00:00
2026-06-18 02:47:10 +00:00
2026-06-01 04:40:13 +00:00
2026-07-31 19:57:13 +00:00
2026-07-28 16:56:55 +00:00
2026-06-29 20:21:46 +00:00
2026-07-18 19:56:01 +00:00
2026-07-23 22:46:06 +00:00
2026-07-21 13:20:31 +00:00
2026-07-30 14:55:00 +00:00
2026-07-15 13:14:36 +00:00
2026-07-06 22:12:33 +00:00
2026-07-25 03:39:45 +00:00
2026-08-07 10:16:57 +00:00
2026-06-05 10:32:57 +00:00
2026-08-07 10:16:57 +00:00
2026-06-05 10:32:57 +00:00
2026-05-29 07:06:57 +00:00
2026-06-15 03:26:51 +00:00
2026-07-29 10:46:31 +00:00
2026-08-05 11:17:54 +00:00
2026-08-05 13:42:28 +00:00
2026-07-30 10:34:16 +00:00
2026-07-14 21:47:47 +00:00
2026-04-02 17:06:57 -03:00
2026-07-26 10:27:23 +00:00
2026-06-15 10:55:39 +00:00
2026-04-29 10:27:47 +00:00
2026-04-24 10:29:51 +00:00
2026-05-13 23:35:10 +00:00
2026-08-07 10:16:57 +00:00
2026-06-02 13:29:23 +00:00
2026-08-07 10:16:57 +00:00
2026-07-13 16:37:28 +00:00
2026-07-08 20:54:51 +00:00
2026-07-31 09:53:28 +00:00
2026-07-08 12:36:29 +00:00
2026-07-15 08:33:25 +00:00
2026-07-18 18:48:49 +00:00
2026-07-15 13:14:36 +00:00
2026-08-07 10:16:57 +00:00
2026-08-08 14:03:54 +00:00
2026-06-05 19:24:28 +00:00
2026-07-13 16:37:28 +00:00
2026-04-07 12:28:19 -03:00
2026-06-29 15:58:53 +00:00
2026-07-23 11:22:43 +00:00
2026-07-10 11:51:16 +00:00
2026-07-14 15:02:41 +00:00
2026-07-23 11:22:43 +00:00
2026-08-07 10:16:57 +00:00
2026-08-04 15:35:05 +00:00
2026-04-18 06:34:19 +00:00
2026-05-04 06:30:47 +00:00
2026-08-01 19:42:37 +00:00
2026-07-31 19:57:13 +00:00
2026-07-30 13:24:19 +00:00
2026-07-30 12:59:16 +00:00
2026-07-31 19:57:13 +00:00
2026-06-15 08:48:19 +00:00
2026-08-07 10:16:57 +00:00
2026-08-07 10:16:57 +00:00
2026-07-29 12:49:46 +00:00
2026-08-08 08:58:02 +00:00
2026-08-07 22:17:41 +00:00
2026-08-05 07:30:17 +00:00
2026-08-03 14:37:21 +00:00
2026-07-08 15:52:48 +00:00
2026-08-04 15:53:09 +00:00
2026-04-24 08:58:26 +00:00
2026-06-16 13:47:55 +00:00
2026-07-30 12:59:16 +00:00
2026-08-07 18:51:36 +00:00
2026-08-06 15:02:42 +00:00
2026-08-03 14:37:21 +00:00
2026-08-06 15:29:26 +00:00
2026-07-20 13:21:18 +00:00
2026-07-14 15:29:30 +00:00
2026-07-31 15:06:40 +00:00
2026-07-31 19:57:13 +00:00
2026-07-26 01:19:29 +00:00
2026-06-12 12:27:28 +00:00
2026-06-22 18:20:57 +00:00
2026-05-05 22:41:13 +00:00
2026-06-25 17:30:12 +00:00
2026-08-07 10:16:57 +00:00
2026-08-08 13:32:13 +00:00
2026-07-23 11:22:43 +00:00
2026-07-23 11:22:43 +00:00
2026-07-24 16:53:45 +00:00
2026-07-24 16:53:45 +00:00
2026-08-05 11:17:54 +00:00
2026-07-24 16:53:45 +00:00
2026-03-25 12:07:34 -06:00
2026-07-23 11:22:43 +00:00
2026-08-07 10:16:57 +00:00
2026-08-05 16:55:10 +00:00
2026-07-13 16:37:28 +00:00
2026-07-03 09:50:42 +00:00
2026-07-28 16:56:55 +00:00
2026-06-29 13:24:33 +00:00
2026-07-10 15:32:21 +00:00
2026-08-07 12:11:38 +00:00
2026-07-15 14:36:43 +00:00
2026-08-06 15:18:02 +00:00
2026-08-07 13:22:09 +00:00
2026-07-21 07:58:16 +00:00
2026-08-05 20:11:33 +00:00
2026-07-14 15:02:41 +00:00
2026-06-02 12:03:05 +00:00
2026-07-21 14:51:27 +00:00
2026-08-04 11:45:33 +00:00
2026-07-29 15:16:39 +00:00
2026-05-29 07:06:57 +00:00
2026-05-14 21:03:56 +00:00
2026-06-23 09:21:31 +00:00
2026-08-07 10:16:57 +00:00
2026-08-07 10:37:14 +00:00
2026-08-01 19:42:37 +00:00
2026-06-23 23:01:58 +00:00
2026-08-07 10:37:14 +00:00
2026-07-13 12:13:49 +00:00
2026-07-17 11:41:08 +00:00
2026-07-31 19:57:13 +00:00
2026-05-12 15:52:52 +00:00
2026-07-31 06:41:53 +00:00
2026-07-15 08:33:25 +00:00
2026-08-08 14:03:54 +00:00
2026-07-14 17:18:23 +00:00
2026-07-31 06:38:08 +00:00
2026-06-13 05:21:05 +00:00
2026-08-08 13:01:16 +00:00
2026-05-05 22:41:13 +00:00
2026-08-04 15:35:05 +00:00
2026-07-23 11:22:43 +00:00
2026-06-05 19:46:05 +00:00
2026-07-31 19:57:13 +00:00
2026-07-23 22:46:06 +00:00
2026-08-07 10:16:57 +00:00
2026-07-27 18:20:35 +00:00
2026-08-04 08:54:56 +00:00
2026-08-07 10:16:57 +00:00
2026-07-24 15:34:17 +00:00
2026-08-08 14:59:07 +00:00
2026-07-28 03:16:10 +00:00
2026-05-27 10:31:53 +00:00
2026-07-16 09:41:21 +00:00
2026-08-03 11:53:30 +00:00
2026-07-29 06:41:29 +00:00
2026-07-29 20:59:24 +00:00
2026-08-08 14:03:54 +00:00
2026-07-07 11:48:14 +00:00
2026-08-03 01:46:00 +00:00
2026-08-03 01:46:00 +00:00
2026-07-14 15:02:41 +00:00
2026-06-23 09:33:47 +00:00
2026-08-07 10:16:57 +00:00
2026-05-05 16:25:56 +00:00
2026-08-07 10:16:57 +00:00
2026-07-20 11:17:43 +00:00
2026-04-29 10:27:47 +00:00
2026-07-23 04:49:39 +00:00
2026-04-24 10:29:51 +00:00
2026-05-27 19:33:04 +00:00
2026-05-27 10:31:53 +00:00
2026-07-20 04:08:28 +00:00
2026-03-31 08:06:37 -06:00
2026-05-04 06:30:47 +00:00
2026-07-31 19:57:13 +00:00
2026-07-28 11:51:44 +00:00
2026-07-23 11:22:43 +00:00
2026-08-05 09:22:44 +00:00
2026-08-04 09:27:46 +00:00
2026-07-19 05:36:35 +00:00
2026-07-01 17:36:23 +00:00
2026-03-27 14:41:25 +01:00
2026-07-29 20:59:24 +00:00
2026-06-23 09:33:47 +00:00
2026-07-29 20:59:24 +00:00
2026-05-28 19:43:30 +00:00
2026-08-01 19:42:37 +00:00
2026-07-13 16:37:28 +00:00
2026-08-07 21:14:36 +00:00
2026-07-01 04:25:40 +00:00
2026-05-29 07:06:57 +00:00
2026-06-08 14:59:39 +00:00
2026-08-05 08:16:06 +00:00
2026-08-05 11:03:09 +00:00
2026-03-19 12:53:26 -04:00
2026-05-27 10:31:53 +00:00
2026-06-09 12:06:49 +00:00
2026-03-27 14:41:25 +01:00
2026-05-01 22:33:54 +00:00
2026-08-07 10:16:57 +00:00
2026-08-08 13:32:13 +00:00
2026-05-29 16:28:27 +00:00
2026-08-05 15:43:29 +00:00
2026-08-01 19:42:37 +00:00
2026-04-02 17:06:57 -03:00
2026-04-02 17:06:57 -03:00
2026-07-18 18:48:49 +00:00
2026-07-01 15:18:54 +00:00
2026-05-28 20:19:17 +00:00
2026-05-28 20:19:17 +00:00