Conversation
|
Review requested:
|
Keep the original socket error as the cause of ECONNRESET errors emitted when an HTTP response closes before completion. Preserve the existing aborted message, error code, and event order. Leave cause absent when there is no underlying error. Allow ConnResetException to accept Error options, document the behavior, and cover TLS record errors, TCP resets, explicit destruction, and premature closure without a socket error. This follows investigation of nodejs#66001 and addresses lost error context. The original TLS decryption failure remains unresolved. Refs: nodejs#66001 Signed-off-by: XadillaX <i@2333.moe>
dceab63 to
cd91d44
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #66061 +/- ##
==========================================
+ Coverage 89.99% 90.26% +0.26%
==========================================
Files 784 789 +5
Lines 268410 271477 +3067
Branches 51124 51811 +687
==========================================
+ Hits 241562 245048 +3486
+ Misses 17385 16919 -466
- Partials 9463 9510 +47
🚀 New features to boost your workflow:
|
Thanks for picking this up, and for the honest note that the original failure did not That is very likely the report's fault, not your attempt's. A second round of controlled
So an environment built from the original condition list could easily be one that never There is also a trigger-rate caveat I had not characterised: the minimal configuration fired Corrected conditions, measurements, controls and a reduced repro script are in the issue On this PR specificallyIt fixes something I had to work around by hand, and I think that is worth stating While narrowing the conditions above, the probe had to be modified to attach its own listener
With One note on the regression test, not an objection: sending a deliberately invalid record after AI assistance: the experiments and write-up behind this comment were done with Claude |
|
Follow-up, and a correction to my earlier comment here: I had the root cause wrong. The defect is not in Node at all. Capturing the same connection at both ends showed the I've closed #66001 as invalid. None of this affects this PR. Preserving the underlying socket error as Sorry for the noise, and thanks again for looking into it. AI assistance: the investigation and write-up behind this comment were done with Claude |
Keep the original socket error as the cause of ECONNRESET errors emitted when an HTTP response closes before completion. Preserve the existing aborted message, error code, and event order. Leave cause absent when there is no underlying error. Allow ConnResetException to accept Error options, document the behavior, and cover TLS record errors, TCP resets, explicit destruction, and premature closure without a socket error. This follows investigation of #66001 and addresses lost error context. The original TLS decryption failure remains unresolved. Refs: #66001 Signed-off-by: XadillaX <i@2333.moe> PR-URL: #66061 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Tim Perry <pimterry@gmail.com>
|
Landed in 5ebf690 |
When a socket error interrupts an HTTP response, the request receives the original error, but the response and its downstream pipeline receive only
ECONNRESET: aborted. The underlying cause is lost.Preserve that original error as
causeon the response error, keeping the existingECONNRESETcode,abortedmessage, and event order. This applies to TLS errors and actual TCP resets alike. Premature closure without an underlying error leavescauseabsent.This came out of investigating #66001. I could not reproduce or identify the root cause of the reported TLS decryption failure on an intact stream, but confirmed the separate loss of error context described above. The original failure remains unresolved; this PR is limited to preserving diagnostic context. The TLS regression test deliberately sends an invalid record after response headers have been received to test error propagation.
Validation on macOS arm64:
causeidentity and property attributes, and event order.causeis missing.git diff --checkpassed.Refs: #66001
AI assistance: GPT-6 assisted with investigation, implementation, tests, and this description. The compatibility approach was selected through discussion with the contributor; the validation above was run by the assistant.