Claude Bot
4c27d0df04
fix(node:https): ensure all chunks are yielded in streaming body
...
Fix a race condition in the node:https ClientRequest streaming body
where chunks could be lost when using request-promise + fs.createReadStream()
for multipart uploads.
The issue occurred because:
1. When multiple chunks were pushed to kBodyChunks between Promise resolutions
in the async generator, only one chunk was yielded per iteration
2. When the request finished (self.finished = true), any remaining chunks in
kBodyChunks were not yielded before the generator returned
This fix adds two safety loops:
1. After each Promise resolution, yield any remaining chunks that were pushed
2. After the main loop exits, yield any chunks that remain in the buffer
This is particularly important for HTTPS connections where the TLS handshake
delay can cause timing differences between when data is piped and when it's
consumed by the stream.
Fixes #26638
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-31 18:05:01 +00:00
..
2026-01-06 15:37:56 +00:00
2025-05-08 23:22:16 -07:00
2025-01-31 22:39:43 -08:00
2025-09-24 15:19:16 -07:00
2025-10-09 19:04:41 -07:00
2025-08-06 06:44:46 -07:00
2025-10-07 18:33:34 -07:00
2025-02-26 16:02:15 -08:00
2025-05-08 23:22:16 -07:00
2025-05-08 23:22:16 -07:00
2025-07-14 00:47:53 -07:00
2025-05-08 23:22:16 -07:00
2025-01-28 17:23:57 -08:00
2025-02-19 20:21:52 -08:00
2025-05-08 23:22:16 -07:00
2025-06-03 13:23:12 -07:00
2025-09-20 00:35:42 -07:00
2025-06-03 23:41:37 -07:00
2025-09-17 03:33:14 -07:00
2025-09-30 19:41:35 -07:00
2025-10-06 19:56:40 -07:00
2025-11-05 13:55:49 -08:00
2025-11-10 11:19:57 -08:00
2025-08-18 16:47:45 -07:00
2025-09-06 01:40:36 -07:00
2026-01-14 17:41:21 -08:00
2026-01-15 23:40:45 -08:00
2026-01-14 18:37:54 -08:00
2026-01-15 23:02:16 -08:00
2026-01-16 15:57:27 -08:00
2026-01-14 18:22:32 -08:00
2026-01-15 18:22:01 -08:00
2026-01-14 16:46:20 -08:00
2025-08-25 17:37:12 -07:00
2026-01-20 12:40:33 -08:00
2025-09-20 00:35:42 -07:00
2025-09-20 00:35:42 -07:00
2025-09-20 00:35:42 -07:00
2025-10-07 12:07:29 -07:00
2025-12-27 16:58:36 -08:00
2026-01-06 15:37:56 +00:00
2026-01-15 17:44:59 -08:00
2026-01-06 15:37:56 +00:00
2026-01-06 15:37:56 +00:00
2026-01-06 15:37:56 +00:00
2026-01-06 15:37:56 +00:00
2025-11-03 22:20:07 -08:00
2025-09-20 00:35:42 -07:00
2025-10-09 19:04:41 -07:00
2024-12-10 12:43:17 -08:00
2024-12-10 12:43:17 -08:00
2025-01-17 22:08:07 -08:00
2024-10-04 18:14:20 -07:00
2025-09-02 23:30:52 -07:00
2025-09-20 00:35:42 -07:00
2025-09-20 00:35:42 -07:00
2025-05-08 23:22:16 -07:00
2025-09-26 03:54:41 -07:00
2025-09-20 00:35:42 -07:00
2025-09-07 21:43:38 -07:00
2025-09-20 00:35:42 -07:00
2025-09-20 00:35:42 -07:00
2025-09-20 00:35:42 -07:00
2025-09-30 21:47:31 -07:00
2025-12-15 17:29:04 -08:00
2025-09-24 15:19:16 -07:00
2025-09-20 00:35:42 -07:00
2025-10-07 12:07:29 -07:00
2025-09-02 03:26:51 -07:00
2025-05-08 23:22:16 -07:00
2025-09-20 00:35:42 -07:00
2025-07-14 20:50:32 -07:00
2025-05-08 23:22:16 -07:00
2025-05-08 23:22:16 -07:00
2025-05-08 23:22:16 -07:00
2025-05-08 23:22:16 -07:00
2025-05-08 23:22:16 -07:00
2025-05-08 23:22:16 -07:00
2025-07-20 23:38:24 -07:00
2025-05-08 23:22:16 -07:00
2025-03-03 21:38:05 -08:00
2025-09-03 18:57:39 -07:00
2025-09-03 18:57:39 -07:00
2025-09-03 18:57:39 -07:00
2025-09-03 18:57:39 -07:00
2025-05-26 21:18:22 -07:00
2025-05-08 23:22:16 -07:00
2025-08-01 19:30:51 -07:00
2025-08-06 06:39:25 -07:00
2025-10-27 15:24:38 -07:00
2025-09-02 01:59:06 -07:00
2025-10-20 20:37:51 -07:00
2025-05-16 22:30:58 -07:00
2025-09-20 00:35:42 -07:00
2025-09-20 00:35:42 -07:00
2025-09-20 00:35:42 -07:00
2025-10-07 12:07:29 -07:00
2025-09-15 14:24:03 -07:00
2025-09-20 00:35:42 -07:00
2025-10-07 12:07:29 -07:00
2025-09-20 00:35:42 -07:00
2025-09-20 00:35:42 -07:00
2025-09-02 03:26:25 -07:00
2025-07-03 01:06:22 -07:00
2026-01-27 10:29:34 -08:00
2025-09-20 00:35:42 -07:00
2025-09-20 00:35:42 -07:00
2025-10-06 00:39:08 -07:00
2025-09-20 00:35:42 -07:00
2025-09-20 00:35:42 -07:00
2025-09-20 00:35:42 -07:00
2025-10-20 19:46:22 -07:00
2025-07-23 22:31:42 -07:00
2025-10-18 17:53:47 -07:00
2025-08-14 16:34:38 -07:00
2025-08-15 22:35:38 -07:00
2025-08-15 21:25:54 -07:00
2025-09-20 00:35:42 -07:00
2025-09-20 00:35:42 -07:00
2025-08-15 20:59:50 -07:00
2025-10-06 19:28:48 -07:00
2025-08-27 15:31:28 -07:00
2025-09-15 23:37:10 -07:00
2025-11-24 23:34:16 -08:00
2025-09-26 04:59:07 -07:00
2025-09-07 17:42:09 -07:00
2025-09-08 14:12:00 -07:00
2025-09-14 04:14:48 -07:00
2025-09-24 18:25:39 -07:00
2025-09-24 18:25:39 -07:00
2025-09-24 18:29:15 -07:00
2025-10-06 00:37:29 -07:00
2025-09-25 23:52:56 -07:00
2025-09-27 00:55:54 -07:00
2025-10-24 19:30:43 -07:00
2025-10-03 15:55:57 -07:00
2025-10-05 17:22:37 -07:00
2025-10-06 04:44:05 -07:00
2025-11-26 00:07:51 -08:00
2025-10-12 05:40:02 -07:00
2025-10-10 03:48:47 -07:00
2025-10-08 21:25:24 -07:00
2025-10-11 13:34:06 -07:00
2025-10-20 14:19:22 -07:00
2025-10-19 23:29:29 -07:00
2025-10-17 14:49:28 -07:00
2025-10-20 14:07:31 -07:00
2025-10-20 21:18:47 -07:00
2025-11-05 22:04:14 -08:00
2025-11-05 22:04:14 -08:00
2026-01-22 13:44:49 -08:00
2025-11-30 16:58:58 -08:00
2026-01-19 15:44:27 -08:00
2026-01-19 22:46:36 -08:00
2025-10-28 12:32:15 -07:00
2025-12-15 17:26:32 -08:00
2025-11-28 22:57:55 -08:00
2026-01-23 00:44:12 -08:00
2026-01-28 00:00:50 -08:00
2026-01-19 17:10:47 -08:00
2026-01-19 17:12:42 -08:00
2025-11-07 21:18:07 -08:00
2025-11-05 13:55:49 -08:00
2026-01-19 17:04:44 -08:00
2025-11-05 13:49:13 -08:00
2025-11-12 12:28:55 -08:00
2025-12-16 14:23:29 -08:00
2025-11-27 18:12:07 -08:00
2025-11-19 21:17:51 -08:00
2025-11-27 16:46:15 -08:00
2025-11-30 17:00:25 -08:00
2025-12-01 15:47:27 -08:00
2025-12-07 16:33:37 -08:00
2026-01-22 14:35:18 -08:00
2026-01-22 14:35:18 -08:00
2026-01-22 14:35:18 -08:00
2026-01-26 11:09:03 -08:00
2026-01-22 14:35:18 -08:00
2025-12-26 21:48:19 -08:00
2026-01-14 16:08:06 -08:00
2026-01-12 19:35:11 -08:00
2026-01-14 12:52:41 -08:00
2026-01-13 22:38:31 -08:00
2026-01-15 15:33:43 -08:00
2026-01-14 13:34:31 -08:00
2026-01-12 14:55:27 -08:00
2026-01-14 13:31:06 -08:00
2026-01-09 19:08:02 -08:00
2026-01-20 12:51:54 -08:00
2026-01-08 17:51:42 -08:00
2026-01-14 12:53:04 -08:00
2026-01-14 12:50:36 -08:00
2026-01-14 17:13:30 -08:00
2026-01-14 19:22:08 -08:00
2026-01-15 20:28:32 -08:00
2026-01-15 17:46:07 -08:00
2026-01-18 13:19:02 -08:00
2026-01-19 11:24:02 -08:00
2026-01-20 12:51:54 -08:00
2026-01-19 22:45:22 -08:00
2026-01-20 22:42:38 -08:00
2026-01-21 18:41:15 -08:00
2026-01-23 00:22:36 -08:00
2026-01-23 20:24:12 -08:00
2026-01-23 00:26:52 -08:00
2026-01-23 12:09:03 -08:00
2026-01-24 15:37:29 -08:00
2026-01-26 16:04:45 -08:00
2026-01-31 18:05:01 +00:00
2024-10-14 13:43:06 -07:00
2025-05-08 23:22:16 -07:00
2025-05-08 23:22:16 -07:00
2025-05-08 23:22:16 -07:00
2024-11-18 19:29:55 -08:00
2026-01-14 10:22:30 -08:00
2025-10-10 03:47:38 -07:00
2025-08-26 16:51:41 -07:00
2025-09-22 22:22:58 -07:00
2025-09-22 22:22:58 -07:00
2025-08-09 05:11:50 -07:00
2025-09-04 18:17:14 -07:00
2025-05-08 23:22:16 -07:00
2025-07-15 22:02:03 -07:00
2025-07-15 22:02:03 -07:00
2025-03-04 14:16:18 -08:00
2025-09-26 22:21:00 -07:00
2025-12-01 11:54:03 -08:00
2025-10-06 16:22:24 -07:00
2025-11-26 13:34:02 -08:00
2026-01-06 15:37:56 +00:00
2025-08-15 22:35:38 -07:00
2025-09-20 00:29:15 -07:00
2025-09-02 01:53:39 -07:00
2025-07-25 22:22:04 -07:00
2025-08-19 18:47:04 -07:00
2025-08-18 03:04:37 -07:00
2025-09-19 17:32:12 -07:00
2025-08-18 16:47:45 -07:00
2026-01-21 13:22:21 -08:00
2025-12-06 16:37:09 -08:00
2025-09-10 18:47:50 -07:00
2025-08-19 18:08:00 -07:00
2025-10-06 06:40:15 -07:00
2025-07-15 16:20:34 -07:00
2025-07-15 16:20:34 -07:00
2025-08-22 22:39:47 -07:00
2025-10-07 22:04:40 -07:00
2025-08-28 17:16:37 -07:00
2025-07-20 23:02:10 -07:00
2025-08-09 06:40:36 -07:00
2025-08-30 01:05:51 -07:00
2025-09-13 01:00:57 -07:00
2025-09-13 01:00:57 -07:00
2025-09-13 01:00:57 -07:00
2025-07-17 04:33:30 -07:00
2025-08-20 00:02:14 -07:00
2025-09-24 16:29:05 -07:00