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

OSError: [Errno 99] Cannot assign requested address with pymemcache #621

Open
ThakurKarthik opened this issue Dec 4, 2024 · 0 comments
Open

Comments

@ThakurKarthik
Copy link

Recently we started getting 500 response status on our api end point and when we checked logs, we have errors coming from pymemcache code.

I have opened SO question as well https://stackoverflow.com/questions/79250060/pymemcache-oserror-errno-99-cannot-assign-requested-address but I think this is something either buggy in pymemcache or something that is not understood by me and thus used incorrectly.

We are using version pymemcache 4.0.0 and memcached for caching purpose. Our application is django based, so we are using the provided api cache.get() to access cache https://docs.djangoproject.com/en/5.1/topics/cache/#memcached

Does the pooled client not reuse existing connections by default? We see a huge number of ports in the wait_time state as it looks like pymemcache opens new connection to memcache server for every request we receive on our application and the ports are thus occupied.

cat /proc/net/tcp|grep 2BCB|grep " 03:"|wc -l
the output of above command keeps on increasing if we triggered huge number of requests on our application server.

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