Skip to content
Snippets Groups Projects
Commit 78682c15 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Mysql: Potential workaround for race-condition in create().

It seems mysql_real_connect() and/or mysql_close() aren't
fully thread-safe. When there's a high reconnect contention,
create() sometimes failed with ECONNREFUSED. A network scan
of the client could observe that a new connection was closed
by the client before the server had sent its greeting.

The bug has been observed as recently as in MySQL 5.5.30.
parent 5e3032a2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment