question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connection pool might not recover connection if mysql closed it.

See original GitHub issue

Hello again. Continue working, now with errors I got. As I understand now, cause for it was mysql server closing connection by timeout:

Error: Connection lost: The server closed the connection.] fatal: true, code: ‘PROTOCOL_CONNECTION_LOST’

It happened that very round because it was first time waiting much time. But since I use connections pool, appearance of second error is a big question to me:

`[Error: This socket has been ended by the other party] code: ‘EPIPE’

As I understand it, pool make connection, and, after client used it, take it back to pool and it sit there as long as needed. But even if we suppose connection closed by server by timeout, pool checks if connection closed and make new one to work with.

Because I have no other error messages present I can only think that or my understanding of pooling is wrong or pool is failed in its job somewhere.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sidorarescommented, Oct 16, 2015
0reactions
bitcloudcommented, May 22, 2016

this can be closed probably

Read more comments on GitHub >

github_iconTop Results From Across the Web

why lost Mysql connection pool after a period? - Stack Overflow
My application using Mysql and Postgres at the same time, the web server is tomcat 7.0. After the application runs a period, like...
Read more >
MySQL Bugs: #40036: Connector "lost" pooled connections.
Description: I am using mysql last connector with mysql 5.0.20 @ debian. two Windows/IIS servers whith 2 similar websites. all connections ...
Read more >
"MySQL server has gone away" error - Solution(s)
The MySQL server has gone away error, which means that the MySQL server (mysqld) timed out and closed the connection. By default, MySQL...
Read more >
Handling java.sql.SQLRecoverableException: Closed ...
Because the connection is no longer in the pool and is idle until the end of the transaction, it doesn't get evaluated with...
Read more >
Transient connectivity errors - Azure Database for MySQL
When a connection with an active transaction fails, it is more difficult to handle the recovery correctly. There are two cases: If the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found