-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Keep getting timeout after a few minutes of idle on google cloud sql #878
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
Comments
Are you able to connect using command line client? |
yeap. it does. |
Can you post the timeout error you're getting? |
@badoet I'm closing this issue for now. Please post the timeout error you're getting and I can always re-open the issue. |
Hi dougwilson I'm getting the following error when i tried to connect after some 15minutes
|
Hi @lokeshwebmobi , can you post the stack trace for that error as well? The error itself is saying "Node.js tried to read from a TCP socket that was previously established, but timed out attempting to do so". |
Just following up for posterity.. Referring to Cloud SQL docs: https://cloud.google.com/sql/docs/compute-engine-access
|
@tzmartin setting the keepalive values is not enough, node-mysql should enable keepalive on the socket it uses: You can see whether the keepalive is active with |
is there any compatiblity issue of this driver with the google cloud sql ?
https://developers.google.com/cloud-sql/
it seems that we keep getting time out after a few minutes of idle time.
do anyone in the community face the same issue?
thx
The text was updated successfully, but these errors were encountered: