This repository was archived by the owner on Apr 22, 2023. It is now read-only.
http: fix assert on data/end after socket error#14087
Closed
misterdjules wants to merge 1 commit intonodejs:v0.12from
Closed
http: fix assert on data/end after socket error#14087misterdjules wants to merge 1 commit intonodejs:v0.12from
misterdjules wants to merge 1 commit intonodejs:v0.12from
Conversation
This change is a backport of 1a3ca82 from io.js. Original commit message: Read all pending data out of the socket on `error` event and ensure that no `data`/`end` handlers will be invoked on `socket.destroy()`. Otherwise following assertion happens: AssertionError: null == true at TLSSocket.socketOnData (_http_client.js:308:3) at TLSSocket.emit (events.js:107:17) at TLSSocket.Readable.read (_stream_readable.js:373:10) at TLSSocket.socketCloseListener (_http_client.js:229:10) at TLSSocket.emit (events.js:129:20) at TCP.close (net.js:476:12) Fix: nodejs#9348 PR-URL: nodejs/node#1103 Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Nicu Micleușanu <[email protected]> Fixes nodejs#9348.
indutny
added a commit
that referenced
this pull request
Mar 28, 2015
This change is a backport of 1a3ca82 from io.js. Original commit message: Read all pending data out of the socket on `error` event and ensure that no `data`/`end` handlers will be invoked on `socket.destroy()`. Otherwise following assertion happens: AssertionError: null == true at TLSSocket.socketOnData (_http_client.js:308:3) at TLSSocket.emit (events.js:107:17) at TLSSocket.Readable.read (_stream_readable.js:373:10) at TLSSocket.socketCloseListener (_http_client.js:229:10) at TLSSocket.emit (events.js:129:20) at TCP.close (net.js:476:12) Fix: #9348 PR-URL: nodejs/node#1103 Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Nicu Micleușanu <[email protected]> Fixes #9348. Reviewed-By: Julien Gilli <[email protected]> PR-URL: #14087
Author
|
Landed in d6484f3. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change is a backport of 1a3ca82
from io.js.
Original commit message:
Read all pending data out of the socket on
errorevent and ensure thatno
data/endhandlers will be invoked onsocket.destroy().Otherwise following assertion happens:
Fix: #9348
PR-URL: nodejs/node#1103
Reviewed-By: Rod Vagg [email protected]
Reviewed-By: Nicu Micleușanu [email protected]
Fixes #9348.