felixge/node-mysql — Issue #136: Add a configuration option for connection timeout
Author: Pita
Created: 2011-11-13 03:24:14+00:00
State: open

Hi,

This is a feature request. We have a special case that lets every connection try to the mysql database timeout. It ends with

[2011-11-12 19:06:16.636] [ERROR] console - ERROR: Problem while initalizing the database
[2011-11-12 19:06:16.638] [ERROR] console - Error: ETIMEDOUT, Connection timed out
at Socket._onConnect (net.js:601:18)
at IOWatcher.onWritable [as callback] (net.js:186:12)

The problem is that we get this timeout message about 3 minutes after the first connection try. It would be more useful f we could get this message after 10 sec or so. Is there a configuration option for timeout or can you add one? That would be nice

thx