GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||
GeezerVison is showing github.com — http: fix missing close event on aborted response by not-implemented · Pull Request #1373 · nodejs/node Conversation
Contributor
When sending a response after client aborted the connection in the same tick when the socket is already destroyed but the socket-close event is still not delivered, you did not get either a response-finish or a response-close event. This fix of the race-condition needs an additional flag "_finishOrCloseEmitted" in OutgoingMessage. I did not find any easier solution - I tried to fix this either with an additional "close" or an additional "finish" with some timing-tricks without an additional flag. I had no chance without breaking anything else. Not all of the new checks of "_finishOrCloseEmitted" are currently really needed - they are just for completeness.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsWhen sending a response after client aborted the connection in the same tick when the socket is already destroyed but the socket-close event is still not delivered, you did not get either a response-finish or a response-close event. This fix of the race-condition needs an additional flag "_finishOrCloseEmitted" in OutgoingMessage.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. usually, passing tests should be silent; could you remove the expected
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Of course I could remove them - I kept with the other tests which also contain
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please keep them for now :) I've a bit delayed this, but going to review it next week!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
indutny
pushed a commit
to indutny/io.js
that referenced
this pull request
See next commit for the actual fix. PR-URL: nodejs#1373 Reviewed-By: Fedor Indutny <[email protected]>
indutny
added a commit
to indutny/io.js
that referenced
this pull request
Do not detach the socket from the response until all data is actually sent to the other side. See: nodejs#1373
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
indutny
pushed a commit
to indutny/io.js
that referenced
this pull request
See next commit for the actual fix. PR-URL: nodejs#1373 Reviewed-By: Fedor Indutny <[email protected]>
indutny
added a commit
to indutny/io.js
that referenced
this pull request
Do not detach the socket from the response until all data is actually sent to the other side. See: nodejs#1373
indutny
pushed a commit
to indutny/io.js
that referenced
this pull request
See next commit for the actual fix. PR-URL: nodejs#1373 Reviewed-By: Fedor Indutny <[email protected]>
indutny
added a commit
to indutny/io.js
that referenced
this pull request
Do not detach the socket from the response until all data is actually sent to the other side. See: nodejs#1373
indutny
added a commit
that referenced
this pull request
Do not detach the socket from the response until all data is actually sent to the other side. See: #1373 PR-URL: #1411 Reviewed-By: Chris Dickinson <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
indutny
added a commit
that referenced
this pull request
Do not detach the socket from the response until all data is actually sent to the other side. See: #1373 PR-URL: #1411 Reviewed-By: Chris Dickinson <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
indutny
pushed a commit
that referenced
this pull request
See next commit for the actual fix. PR-URL: #1373 Reviewed-By: Fedor Indutny <[email protected]>
indutny
pushed a commit
that referenced
this pull request
See next commit for the actual fix. PR-URL: #1373 Reviewed-By: Fedor Indutny <[email protected]>
indutny
added a commit
that referenced
this pull request
Do not detach the socket from the response until all data is actually sent to the other side. See: #1373 PR-URL: #1411 Reviewed-By: Chris Dickinson <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
indutny
added a commit
that referenced
this pull request
Do not detach the socket from the response until all data is actually sent to the other side. See: #1373 PR-URL: #1411 Reviewed-By: Chris Dickinson <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
indutny
added a commit
that referenced
this pull request
Do not detach the socket from the response until all data is actually sent to the other side. See: #1373 PR-URL: #1411 Reviewed-By: Chris Dickinson <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
indutny
added a commit
that referenced
this pull request
Do not detach the socket from the response until all data is actually sent to the other side. See: #1373 PR-URL: #1411 Reviewed-By: Chris Dickinson <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
indutny
added a commit
that referenced
this pull request
Do not detach the socket from the response until all data is actually sent to the other side. See: #1373 PR-URL: #1411 Reviewed-By: Chris Dickinson <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
indutny
added a commit
that referenced
this pull request
Do not detach the socket from the response until all data is actually sent to the other side. See: #1373 PR-URL: #1411 Reviewed-By: Chris Dickinson <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
indutny
added a commit
that referenced
this pull request
Do not detach the socket from the response until all data is actually sent to the other side. See: #1373 PR-URL: #1411 Reviewed-By: Chris Dickinson <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
http
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. | |||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |