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

Connection Pooling support? #83

Open
jamiegau opened this issue Feb 21, 2022 · 1 comment
Open

Connection Pooling support? #83

jamiegau opened this issue Feb 21, 2022 · 1 comment

Comments

@jamiegau
Copy link

I have a need to use keep alive and connection pooling. So when I open new calls to a soap service, the requests library in use attempts to reuse already existing connections.

I have looked over the code. It's a little beyond me. So I am asking here is this feature is actually present. The manual does not mention it, apart from caching the wsdl's..
From my inspection, it looks like a non connection-pool library is used and that does not implement connection pooling.

After looking though the code more, it looks like implementing a connection-pool solution would be quite involved, likely beyond me.
Could I have a comment form a key developer on this topic and the likely best path to implement this feature?

My initial reaction is to move it to urllib3 as it does support connection pooling.

@jamiegau
Copy link
Author

After more study of the library, I am of the understanding that I could create a singleton class for each device I require a connection with keeping a
client = Client('http://localhost:8181/soap/helloservice?wsdl', username='bob', password='catbob')
variable active and as such keeping the initial login active and the http/https connection alive. Allowing me to reuse the connection and not having to re-login every time I need to call a method.

If that's the case, we can close this query.
Thanks.

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

1 participant