-
Notifications
You must be signed in to change notification settings - Fork 2k
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
apollo-server-cache-memcached doesn't reconnect after ECONNRESET #3837
Comments
Is there any resolution on this issue? Facing the same issue, the connection doesn't try to reconnect and doesn't throw any error also. Thus the complete call gets hanged until task times out from aws lambda. |
Keeping in mind the state of that extension and the fact that it seems to be dead over the last two years I would suggest switching to Redis. Unless... you would like to patch it up :) |
@kdybicz actually we found out the root cause and that was because lambda was freezing the memcached connections and upon again calling the same lambda instance, the connection was trying to get reused and this was throwing the error. Thus had to close all the connections on request end. |
We no longer maintain a wrapper around a memcache client implementing our cache interface; instead, we maintain |
I'm running my Lambda in NodeJS 12.x container on AWS with such dependencies:
As long there are no issues with connection to AWS Memcached servers everything seems to work fine, but sometimes for some reason connection is dropped with such error:
This itself is a separate problem, but core of my situation is that Memcached doesn't try to reconnect to the server after this issue and just hangs. This could be related to issues with legacy and not maintained anymore
memcached
client you're using in yourapollo-server-cache-memcached
module. I found this in their repo: 3rd-Eden/memcached#281 and 3rd-Eden/memcached#199Is there a chance you could update your module to use more recent, maintained version of memcached client?
The text was updated successfully, but these errors were encountered: