Skip to content

it is passible to handle keep-alive connections by the library? #165

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

Closed
andrejlevkovitch opened this issue Feb 27, 2020 · 1 comment
Closed

Comments

@andrejlevkovitch
Copy link

http.request create new connection every call go method and close stream. So there is a way to reuse connection several times by keep-alive?

@daurnimator
Copy link
Owner

The library supports it for the lower level connection and stream apis, but not for the high level request object. The hard bit is knowing if an existing connection is suitable for a new request (need to check dns, certificates, any SSL settings, http version selection, etc. its quite a long list)

See #121

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

No branches or pull requests

2 participants