Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make sure we invalidate the closed FD in case it's value is reused on…

… a new connection
  • Loading branch information...
commit 841ee2bba4558a56ef8a60930e31349545aae388 1 parent 6e5cda6
@brianmario authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  ext/mysql2/client.c
View
1  ext/mysql2/client.c
@@ -144,6 +144,7 @@ static VALUE nogvl_close(void * ptr) {
if (!wrapper->closed) {
wrapper->closed = 1;
mysql_close(wrapper->client);
+ wrapper->client->net.fd = -1;
if (!wrapper->freed) {
free(wrapper->client);
}
Please sign in to comment.
Something went wrong with that request. Please try again.