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
Allow cleanup of redis sockets to prevent event core leaking. #2372
Conversation
Any way this could be tested ? |
I'm trying to think of how to test this without having an actual Redis server... Indeed, there's only 2 unittests in this file, and they both do not work with the actual Redis server. I'm open to ideas, but I don't know if it can be done. |
There is a Redis integration test in the "tests" directory where this could be added. The only way to verify this that I can see is to manually count all open file descriptors/SOCKET handles, before and after. I'd not make this mandatory, but it would be nice to add a simple call in the existing test, so that ideally the current warnings go away (CI output). |
OK, will do. |
Updated |
16956f1
to
0198520
Compare
connections in redis tests to at least exercise the code path.
0198520
to
962b8b2
Compare
Ugh, I keep screwing up my redis test. I couldn't run the test locally because I don't have a redis server that I want to muck with. In any case, I had to force push again. If it turns green, I'll ping you to reapply the auto merge. |
OK, ping @s-ludwig. The failure seems unrelated to the patch. |
ping @s-ludwig again. |
Sorry, missed the first time! Restarted and toggling auto-merge. |
See issue #2245. This allows user code to clean up a
RedisClient
orRedisSessionStore
before exiting the program to prevent messages of leaked eventcore drivers. Not attached to the function name, so if that needs to change, let me know.