-
Notifications
You must be signed in to change notification settings - Fork 177
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
Fix Client
overwriting its connection cache when using a custom Net.ctx
#1074
Fix Client
overwriting its connection cache when using a custom Net.ctx
#1074
Conversation
When given a custom context, the client would always overwrite its connection cache. This prevents using a custom connection cache and a custom context. Access the connection cache directly.
c0ce91e
to
d345f14
Compare
I'm not convinced that this patch is complete, if the |
Can't be of much help here as I have no idea how any of this is supposed to work. A test would be useful to understand what this is changing though |
Ping @madroach, can you help us reviewing this? |
Hi @MisterDA, If you want to use a custom This could maybe be improved upon by removing the |
Thanks for your clear explanation of my problem and the possible solutions!
Yes, I fell right into that. Should it be documented somehow? I find this behavior a bit surprising.
This would make sense, I think. I find it quite confusing to have a global cache hidden when calling the I'll close this PR as this patch isn't correct, but we can keep on discussing. |
Sounds like a very good idea. Could you suggest an edit for the docstrings? |
I agree, sounds like a good idea to just have it in the |
I did something similar. Since |
It is documented. See the |
A downside of the approach to change |
When given a custom context, the client would always overwrite its connection cache. This prevents using a custom connection cache and a custom context. Access the connection cache directly.