-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUST-807 Disallow maxPoolSize=0 #491
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So in SWIFT-1339, we decided to not implement this ticket, since we didn't already have this behavior and didn't exactly want to encourage it. What do you all think about doing that here too? cc @kmahar
The notion of an unbounded pool did make me a bit twitchy, so I'd be happier with this not being implemented. |
Not implementing this is alright with me. Do we need this behavior for tests? |
The tests just validate that |
I think it's reasonable to take the same route we did in Swift and not treat zero as unlimited. We did discuss at some point recently-ish what Rust should do on invalid/unsupported URI options and there were some points made in both directions for erroring vs. just logging a warning. I don't remember if we reached a conclusion... Regardless, it would seem we might want to apply similar logic to how we handle invalid values for valid options, such as 0 in this case. |
Updated the PR and description to disallow |
c138048
to
4b09480
Compare
RUST-807
This disallows
maxPoolSize=0
and merges the relevant updated spec tests forminPoolSize
/maxPoolSize
, skipping the one formaxPoolSize=0
.