http: ClientRequest.abort is destroy#28683
Closed
ronag wants to merge 3 commits intonodejs:masterfrom
Closed
Conversation
7962df1 to
cdd194e
Compare
673aa19 to
6bd3be5
Compare
addaleax
approved these changes
Jul 14, 2019
a450164 to
54c460a
Compare
9f97795 to
d0101f8
Compare
Member
Author
|
There is more work to be done (e.g. the TODO in this PR) in terms of making ClientRequest and OutgoingMessage more stream like. But I suggest that be done in future PR's. |
d0101f8 to
ab00509
Compare
Member
Author
|
Fixed failing test |
Member
Author
|
ping @benjamingr |
lpinca
reviewed
Jul 15, 2019
9f8fb09 to
3bbfbde
Compare
lpinca
reviewed
Jul 16, 2019
4 tasks
c9baec5 to
3211fe8
Compare
3211fe8 to
6f95d70
Compare
Member
Author
|
@Trott: This is no longer blocked |
Collaborator
Member
Author
|
@Trott: this looks ready |
Member
Author
|
@lpinca you good with this? |
Member
|
I think this requires a CITGM run. The breaking changes are big enough. |
Member
Author
lol, what? :D |
Member
|
Rubber Stamp LGTM :) |
Member
Author
|
@Trott CITGM please |
Member
Trott
reviewed
Aug 17, 2019
| Type: Documentation-only | ||
|
|
||
| [`ClientRequest.destroy()`][] should be the same as | ||
| [`ClientRequest.abort()`][]. Make ClientRequest more streamlike by deprecating |
Member
There was a problem hiding this comment.
Optional suggestion:
Suggested change
| [`ClientRequest.abort()`][]. Make ClientRequest more streamlike by deprecating | |
| [`ClientRequest.abort()`][]. Make ClientRequest more stream-like by deprecating |
Member
|
CITGM looks good but this does need a rebase. |
Member
Author
4 tasks
Member
Author
|
I think #29192 is a much more elegant solution, although a bit more risky... |
4 tasks
Member
Author
Member
Author
|
Closing in favor of #29192 which should not be as controversial. Will open a new PR if required once there is consensus. |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
ClientRequest.destroy()should be the same asabort(). MakeClientRequestmore streamlike by deprecatingabort().If request has completed it cannot be aborted.
This also allows us to replace a lot of edge case code (e.g.
isRequest) that has to callabortforClientRequestwhile everything else is justdestroy.Calling
destroypreviously instead ofabortmight have some weird behaviour sinceabortseems to take a lot more stuff into account e.g.req.agent.Refs: #28686
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesNOTE TO SELF: look into the callback