cpr
cpr copied to clipboard
Add connection pool option (V3)
Add connection pool option (see #488 & #330)
@cleaton thanks for contributing! I will try to review it over the weekend.
Please also add a MR here for documentation: https://github.com/libcpr/docs
@cleaton thanks again for contributing this (again). Is there a specific reason you are not following up with it so we can go ahead and merge it?
@cleaton thanks again for contributing this (again). Is there a specific reason you are not following up with it so we can go ahead and merge it?
Thanks for the feedback, Sorry for the delay, I’ve been off on vacation. I hope to have some time to check this weekend or next. 👍
I've updated PR and added documentation: https://github.com/libcpr/docs/pull/57
Perfect, thanks! Now I'm on vacation. I will try to review it next week.
cppcheck is failing and it looks like there is a race condition with one test on windows?
[ RUN ] MultipleGetTests.PoolAsyncGetMultipleTest
D:\a\cpr\cpr\test\connection_pool_tests.cpp(55): error: Expected equality of these values:
std::string{"Hello world!"}
Which is: "Hello world!"
response.text
Which is: ""
D:\a\cpr\cpr\test\connection_pool_tests.cpp(57): error: Expected equality of these values:
std::string{"text/html"}
Which is: "text/html"
response.header["content-type"]
Which is: ""
D:\a\cpr\cpr\test\connection_pool_tests.cpp(58): error: Expected equality of these values:
200
response.status_code
Which is: 0
D:\a\cpr\cpr\test\connection_pool_tests.cpp(60): error: Expected equality of these values:
server->GetConnectionCount()
Which is: 99
NUM_REQUESTS
Which is: 100
[ FAILED ] MultipleGetTests.PoolAsyncGetMultipleTest (2553 ms)
[----------] 2 tests from MultipleGetTests (2596 ms total)
@cleaton thanks for taking care of this. Now we can merge it.