sidorares / sidorares/node-mysql2
ECONNRESET in pool connection
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.4k
- Forks
- 680
- Avg merge
- 9h 7m
- Merged PRs (30d)
- 59
Description
Regards! By some reason I'm receiving ECONNRESET error into a pool connection. Strangely this is only happen if the connection is idle in pool for more of 5 minutes! If I recover the connection from pool before pass 5 minutes it works, but after 5 minutes the ECONNRESET is shown. This is some default config from the package? I have maked tests using the npm: mysql and mariadb packages and works well! Any idea of whats happening? Btw thanks for the project! =)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing the ECONNRESET after a pooled connection remains idle for more than five minutes, then inspect the pool's idle-connection configuration and compare the behavior with the mysql and mariadb packages. Done means the cause is identified and the relevant pool behavior or configuration is covered by a reproducible test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, node.js, typescript
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100