-
Notifications
You must be signed in to change notification settings - Fork 491
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
Add option --fresh-connect to optionally disable connection reuse #3398
base: master
Are you sure you want to change the base?
Add option --fresh-connect to optionally disable connection reuse #3398
Conversation
Hi @theoforger Thanks for the PR, just a couple of things to change:
https://github.com/Orange-OpenSource/hurl/blob/master/packages/hurl/src/http/client.rs#L394-L409 we can see that
I think we can fix this just by moving
Thanks!! |
The requested changes are pushed. Thanks for the explanation! 🙏 Edit: Forgot to sign my commits. Will work on that shortly. |
9d798a0
to
69d4323
Compare
@theoforger we're discussing with the other maintainers whether we keep this option or not. There is indeed |
The initial reason to implement |
@jcamiel @fabricereix It happens. No worries! Thanks for this great learning opportunity 🙏 |
Sorry again for this 😔 |
Closes #3253.
What
This PR implements the
--fresh-connect
option, which makes sure a new connection is created for each request. Therefore not reusing any existing connections. It also includes necessary changes in docs and test code.How
The
--fresh-connect
flag interfaces withlibcurl
and set theCURLOPT_FRESH_CONNECT
option totrue
.