Skip to content

conn_pool: renames (request -> stream)#12975

Merged
alyssawilk merged 3 commits intoenvoyproxy:masterfrom
alyssawilk:rename
Sep 9, 2020
Merged

conn_pool: renames (request -> stream)#12975
alyssawilk merged 3 commits intoenvoyproxy:masterfrom
alyssawilk:rename

Conversation

@alyssawilk
Copy link
Contributor

Risk Level: low (renames)
Testing: tests renamed too
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Copy link
Contributor

@asraa asraa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Is this re-name only targetting the connection pool component (and what about OriginalConnPool?) Otherwise LGTM

if (host_->cluster().resourceManager(priority_).pendingRequests().canCreate()) {
ConnectionPool::Cancellable* pending = newPendingRequest(context);
// This must come after newPendingRequest() because this function uses the
ConnectionPool::Cancellable* pending = newPendingStream(context);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't comment on the line above this, but will the resource manager's requests also be renamed?

@alyssawilk
Copy link
Contributor Author

Yeah, OriginalConnPool is theoretically going away so I had no intent to clean that up.
Unfortunately there's a bunch of lingering request terminology scattered through the code base, some of which is in stats or APIs so is going to stick around. I think I just signed up for [new] conn pool cleanup :-)

Copy link
Contributor

@asraa asraa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clarification! LGTM

@alyssawilk alyssawilk merged commit 25db910 into envoyproxy:master Sep 9, 2020
@alyssawilk alyssawilk deleted the rename branch December 10, 2020 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants