Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle "too many connections" error #34

Closed
felixge opened this issue Oct 29, 2010 · 1 comment
Closed

Handle "too many connections" error #34

felixge opened this issue Oct 29, 2010 · 1 comment

Comments

@felixge
Copy link
Collaborator

felixge commented Oct 29, 2010

Seems like yet another undocumented gem in the mysql protocol:

<- GREETING_PACKET: {"length":135,"received":135,"number":0,"type":0,"protocolVersion":255,"serverVersion":"i\u0004Host 'domU-12-31-39-10-71-32.compute-1.intern
al' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'"}

/usr/local/lib/node/.npm/mysql/0.7.0/package/lib/mysql/auth.js:30
  var stage3 = sha1(scramble.toString('binary') + stage2);
                             ^
TypeError: Cannot call method 'toString' of undefined
    at Object.token (/usr/local/lib/node/.npm/mysql/0.7.0/package/lib/mysql/auth.js:30:30)
    at Client._sendAuth (/usr/local/lib/node/.npm/mysql/0.7.0/package/lib/mysql/client.js:308:20)
    at Client._handlePacket (/usr/local/lib/node/.npm/mysql/0.7.0/package/lib/mysql/client.js:271:10)
    at Parser.<anonymous> (/usr/local/lib/node/.npm/mysql/0.7.0/package/lib/mysql/client.js:83:14)
    at Parser.emit (events:27:15)
    at /usr/local/lib/node/.npm/mysql/0.7.0/package/lib/mysql/parser.js:75:14
    at Parser.write (/usr/local/lib/node/.npm/mysql/0.7.0/package/lib/mysql/parser.js:565:7)
    at Stream.<anonymous> (/usr/local/lib/node/.npm/mysql/0.7.0/package/lib/mysql/client.js:64:16)
    at Stream.emit (events:27:15)
    at IOWatcher.callback (net:489:16)
@felixge
Copy link
Collaborator Author

felixge commented Nov 3, 2010

This was fixed in 2461915

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant