Skip to content
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

How to enable disable connection reuse #277

Open
ihsaddamhussain opened this issue Aug 16, 2024 · 2 comments
Open

How to enable disable connection reuse #277

ihsaddamhussain opened this issue Aug 16, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@ihsaddamhussain
Copy link

ihsaddamhussain commented Aug 16, 2024

I am looking for a way to enable tor disable connection reuse with each request. How do I set the keep alive session in dsl. I am having hard time to figure out the way.

@ihsaddamhussain ihsaddamhussain changed the title useKeepAlive How to enable disable connection reuse Aug 16, 2024
@rabelenda
Copy link
Contributor

Hello, thank you for trying and reporting this.

Currently the library does not provide any method to set this behavior, but it should be quite easy to add. Do you think you can contribute with the PR?

You can also try as workaround to set the Connection header to close when you don't want to use keep alive for some connection.

@rabelenda rabelenda added the enhancement New feature or request label Aug 19, 2024
@ihsaddamhussain
Copy link
Author

Sure, I will raise a PR for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants