Connection pool might not recover connection if mysql closed it.
See original GitHub issueHello 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:
- Created 8 years ago
- Comments:12 (6 by maintainers)
first example - https://github.com/felixge/node-mysql#pooling-connections
this can be closed probably