Reputation: 2266
I'm running a Node.js server with Express.js and the 'mysql' package to make DB calls. This server makes requests to a MySQL database on an external machine. These requests involve large joins being executed, and take a long time, which I expect. Unfortunately, Node is impatient and even though for my purposes it's okay for these DB calls to take a long time, Node is returning a time-out error state on the DB call instead of waiting patiently for the data to come back. Is this configurable? How can I make Node wait patiently? Note, I know MySQL is returning queries correctly because an Apache/PHP server making the same query receives the correct response from MySQL without timing out.
Upvotes: 1
Views: 640