Git Product home page Git Product logo

Comments (5)

Sannis avatar Sannis commented on July 17, 2024

I fix similar error with replacing conn.end() by conn.destroy(), but I think this isn't good way. Also I try to use reverse callback order, but it doesn't matter.
old.end(function () {
temp.connect(function (err) {
cb(temp);
});
});

I specially disable DNS lookups in MySQL server to increase performance and switch to IP when connect to DB with node-mysql (for benchmarking node MySQL bindings). So it is interesting for me, is it a bug in node-mysql or in Node itself.

from mysql.

CrabDude avatar CrabDude commented on July 17, 2024

I know it used to be a bug in Node itself, but it appears to have been resolved, though maybe this is proving to be an edge case.

from mysql.

felixge avatar felixge commented on July 17, 2024

CrabDude: Are you sure that your mysql connections are going stale? If that's the case then it is a bug. I've explicitly added support for automatic re-connection in these scenarios.

from mysql.

CrabDude avatar CrabDude commented on July 17, 2024

@felixge: I never verified, and unfortunately I am no longer on the project. It was something that would come up eventually every time which I resolved by merely letting the process die and be restarted by multi-node. Hopefully it was just something on my end. ;)

from mysql.

felixge avatar felixge commented on July 17, 2024

Alright, I'll close this for now until I have a way to reproduce the problem.

from mysql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.