sidorares / sidorares/node-mysql2

Multiple Consecutive Requests Hang Application

Open
#68 21 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs investigation
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.