--> ComPingPacket
ComPingPacket { command: 14 }
// waiting...
// After 7.5 seconds, the request is completely served rather quickly, the first packet after the ping is a HandshakeInitializationPacket
<-- HandshakeInitializationPacket
HandshakeInitializationPacket {
protocolVersion: 10,
serverVersion: '5.6.26-log',
threadId: 47,
scrambleBuff1: <Buffer ...>,
filler1: <Buffer 00>,
serverCapabilities1: 65535,
serverLanguage: 33,
serverStatus: 2,
serverCapabilities2: 49279,
scrambleLength: 21,
filler2: <Buffer 00 00 00 00 00 00 00 00 00 00>,
scrambleBuff2: <Buffer ...>,
filler3: <Buffer 00>,
pluginData: 'mysql_native_password',
protocol41: true }
--
You received this message because you are subscribed to the Google Groups "node-mysql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-mysql+...@googlegroups.com.
To post to this group, send email to node-...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-mysql.
For more options, visit https://groups.google.com/d/optout.
On 23.01.2016, at 23:01, Jaap Taal <ja...@q42.nl> wrote:Hi Felix,AccuireTimeout is definitely the delay I'm seeing. I aggree it is probably a TCP problem, and not with node-mysql.
I've sprinkled console.logs around in the code, and after ComPingPacket is sent, nothing comes in.
I've contacted Google about this and I will update this thread if any news comes out of it.
Thanks for your suggestions on how to work arround this. I think doing a ping every minute should be a reasonable workaround.The code you proposed seems simple enough, although, closed connections (because of errors) should stop pinging.Once we've implemented a workaround, I'll post the code here as well.