Important! Fixed underlying network socket unexpected silent death.
Important! Fixed underlying network socket unexpected silent death.

In production at rare (once at 2-3 days) occasion mysql-5.6.11-win-x64 unexpectedly closes socket. Situation is similar when I just forcibly kill mysqld process. 

Next, Protocol.destroy() called very silently because of socket pipe, and all consequent queries return with error code  'PROTOCOL_ENQUEUE_AFTER_DESTROY'.

Suggested disconnectHandler doesn't work out due to 'false' value at the error flag fatal.

Error message 'PROTOCOL_ENQUEUE_AFTER_DESTROY' in such situation seems to be misleading, since there was no user-code invocation on Connection.destroy(), and, moreover the connection to the server is already gone.

Suggested patch supposed to fix this and assumes unexpected socket close as 'PROTOCOL_CONNECTION_LOST'.

I am checking it on my env right now.

Thanks!
Use stream to handle local file.
Remove an unused import.
Merge pull request #668 from ayanamist/bugfix

Use stream to handle local file.
Since local stream is not specified with encoding, we should use Buffer directly.
Add CJK local file stream test case.
Fix test case for 0.8.x
Merge pull request #670 from ayanamist/bugfix

Since local stream is not specified with encoding, we should use Buffer directly.
v2.0.0-rc2 changelog
2.0.0-rc2
fixed a typo at the beginning of the readme
Merge pull request #673 from KyleW/master

fixed a typo at the beginning of the readme
oops, same type appears a second time in the readme. Fixed now.
Merge pull request #674 from KyleW/master

Same typo appears a second time in the readme. Fixed now.
fixed bunch of trailing semicolon typos in Readme.
Merge pull request #675 from mananvaghasiya/master

fixed bunch of trailing semicolon typos in Readme.
adding `homepage` field
Merge pull request #676 from Fritz-Lium/patch-1

adding `homepage` field
Merge pull request #667 from simak-alexandr/patch-1

Important! Fixed underlying network socket unexpected silent death.
Merge branch 'master' of https://github.com/felixge/node-mysql