Uh oh!
There was an error while loading. Please reload this page.
http: ClientRequest.abort is destroy - #28683
Conversation
7962df1 to
cdd194eCompareUh oh!
There was an error while loading. Please reload this page.
673aa19 to
6bd3be5CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
a450164 to
54c460aCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
9f97795 to
d0101f8Compareronag
commented
Jul 15, 2019
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. |
ronag
commented
Jul 15, 2019
Fixed failing test |
ronag
commented
Jul 15, 2019
ping @benjamingr |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
9f8fb09 to
3bbfbdeCompareUh oh!
There was an error while loading. Please reload this page.
c9baec5 to
3211fe8Compare3211fe8 to
6f95d70Compareronag
commented
Aug 9, 2019
@Trott: This is no longer blocked |
nodejs-github-bot
commented
Aug 9, 2019
ronag
commented
Aug 17, 2019
@Trott: this looks ready |
ronag
commented
Aug 17, 2019
@lpinca you good with this? |
lpinca
commented
Aug 17, 2019
I think this requires a CITGM run. The breaking changes are big enough. |
ronag
commented
Aug 17, 2019
lol, what? :D |
lpinca
commented
Aug 17, 2019
Rubber Stamp LGTM :) |
ronag
commented
Aug 17, 2019
@Trott CITGM please |
lpinca
commented
Aug 17, 2019
| Type: Documentation-only | ||
| [`ClientRequest.destroy()`][] should be the same as | ||
| [`ClientRequest.abort()`][]. Make ClientRequest more streamlike by deprecating |
There was a problem hiding this comment.
Optional suggestion:
| [`ClientRequest.abort()`][]. Make ClientRequest more streamlike by deprecating | |
| [`ClientRequest.abort()`][]. Make ClientRequest more stream-like by deprecating |
Trott
commented
Aug 17, 2019
CITGM looks good but this does need a rebase. |
ronag
commented
Aug 17, 2019
ronag
commented
Aug 18, 2019
I think #29192 is a much more elegant solution, although a bit more risky... |
ronag
commented
Aug 20, 2019
Closing in favor of #29192 which should not be as controversial. Will open a new PR if required once there is consensus. |
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