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

Question before implementing PR regarding keep-alive connections #768

Closed
lalo opened this issue Feb 27, 2019 · 10 comments
Closed

Question before implementing PR regarding keep-alive connections #768

lalo opened this issue Feb 27, 2019 · 10 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@lalo
Copy link

lalo commented Feb 27, 2019

I'm interested in adding a config to enable keep-alive on the connections with urllib3 connection pools. I see that this dependency is brought by the swagger-codegen -> https://github.com/kubernetes-client/python/blob/master/kubernetes/client/configuration.py#L43

If I contribute this to the swagger-codegen project, this project actively moves the dependency to the latest right? Also, is this the right approach or am I missing something else?

Thanks

@lalo lalo changed the title Question before implementing PR Question before implementing PR regarding keep-alive connections Feb 27, 2019
@tomplus
Copy link
Member

tomplus commented Feb 27, 2019

Hi. We are moving from swagger-codegen to openapi-generator. You can track it here: kubernetes-client/gen#93. It'd be better to add this feature to openapi-generator.

@wing328
Copy link

wing328 commented Apr 30, 2019

@lalo May I know if you've time to submit a PR for OpenAPI Generator to enable keep-alive in the Python client?

@lalo
Copy link
Author

lalo commented Apr 30, 2019

If it's urgent you should go ahead and implement it, if not I have some personal time constraints and can't prioritize this high enough (maybe in a week or 2).

@wing328
Copy link

wing328 commented Apr 30, 2019

Please take your time and let us know if you need help with the PR. Thanks for your contribution in advance.

@lalo
Copy link
Author

lalo commented Jun 2, 2019

After taking a second look, it seems that there is no need to modify OpenApi generator, since the request method already has a way to modify the headers.

:param headers: http request headers

My take is that we should/could be able to set it to 'connection': 'keep-alive', thoughts?

@wing328
Copy link

wing328 commented Jun 30, 2019

@lalo Sure, we can use this method for the time being.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 28, 2019
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Oct 28, 2019
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

5 participants