sidorares / sidorares/node-mysql2
Multiple Consecutive Requests Hang Application
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.4k
- Forks
- 680
- Avg merge
- 9h 7m
- Merged PRs (30d)
- 59
Description
When I hit a page on my NodeJS app using the mysql2 adapter with SSL, it seems to work ok until I reload the page more than 3-4 times in a row. The app then hangs and there is nothing in the error output to explain what has happened even with debug flag set.
I also noticed a typo in connection_config.js:
this.cmpress = options.compress;
Again, as I appreciate the ability to use SSL with this library, I don't get the hanging issue with node-mysql and can't afford that uncertainty.
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
Start in connection_config.js, where the issue identifies a typo, and reproduce the SSL behavior with the mysql2 adapter by making several consecutive page requests. Compare the debug output and behavior with node-mysql; done means the repeated requests no longer hang and the reported configuration typo is corrected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, nodejs
- Domain
- backend, database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100