MDEV-9749 InnoDB receives 'Bad file descriptor' error, possibly related to feedback plugin

and
MDEV-10250 InnoDB: Error: File (unknown): 'close' returned OS error 209. Cannot continue operation"

after a failed connect() feedback plugin was continuing with the
file descriptor, trying to send the data (which failed) and
closing it at the end. Even though this fd might've been reused for
something else already.
This commit is contained in:
Sergei Golubchik 2016-06-19 14:51:03 +02:00
commit 95bf696d2c

View file

@ -190,6 +190,7 @@ int Url_http::send(const char* data, size_t data_length)
break;
closesocket(fd);
fd= INVALID_SOCKET;
}
freeaddrinfo(addrs);