You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only relevant (at the moment) to people using client.socket from ruby, but client->closed = 0 in C occurs too early - after mysql_init, instead of when client->net.fd is actually set, which is after mysql_real_connect returns.
Simply moving client->closed = 0 however is not enough, since nogvl_close should still call mysql_close/xfree even if mysql_real_connect was never called. So, I'm filing this ticket until someone can add an "initialized" state or similar.
The text was updated successfully, but these errors were encountered:
I forget why I was using the socket from ruby, but I made this note after working with the C code for a bit. If no one else uses the socket it probably doesn't matter.
Only relevant (at the moment) to people using
client.socket
from ruby, butclient->closed = 0
in C occurs too early - aftermysql_init
, instead of whenclient->net.fd
is actually set, which is aftermysql_real_connect
returns.Simply moving
client->closed = 0
however is not enough, sincenogvl_close
should still callmysql_close/xfree
even ifmysql_real_connect
was never called. So, I'm filing this ticket until someone can add an "initialized" state or similar.The text was updated successfully, but these errors were encountered: