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#1074MisterDA wants to merge 1 commit into
Client overwriting its connection cache when using a custom Net.ctx#1074Conversation
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.