sidorares / sidorares/node-mysql2
Mysql2 Pool takes a 10-minute break after inquiring for information. The second inquiry will be reported to read ECONNRESET.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.4k
- Forks
- 680
- Avg merge
- 9h 7m
- Merged PRs (30d)
- 59
Description

Test


results of execution
first query, Pool value:

Execute the second time without rest:

Take a 10-minute break and execute again:

Other:
const mysqlConfig = {
host: ‘localhost’,
user: ‘root’,
password: ‘root’,
database: ‘my_db’,
port: 3306,
};
mysql version:5.6.31
use mysql + co running the same code is OK,No database settings have been made, wait_timeout is 28800
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 pool behavior with the shown configuration against MySQL 5.6.31, comparing immediate repeated queries with a query after the reported idle period, then trace the pool's connection lifecycle. Done means the repeated inquiry no longer produces ECONNRESET after the idle period and the behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, node.js, typescript
- Domain
- backend, database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100