summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-06-19 14:51:03 +0200
committerSergei Golubchik <serg@mariadb.org>2016-06-20 15:49:00 +0200
commit95bf696d2c8ee189a1836b5b0e4ec353aa4bda30 (patch)
treeac38db95a92dd7f756ad9ca27f89aef8d674c3ec /plugin
parent7f38a070baa503a37af186ff24f39606816f55ec (diff)
downloadmariadb-git-95bf696d2c8ee189a1836b5b0e4ec353aa4bda30.tar.gz
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.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/feedback/url_http.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/feedback/url_http.cc b/plugin/feedback/url_http.cc
index dff5da56a4f..fbea38c07eb 100644
--- a/plugin/feedback/url_http.cc
+++ b/plugin/feedback/url_http.cc
@@ -190,6 +190,7 @@ int Url_http::send(const char* data, size_t data_length)
break;
closesocket(fd);
+ fd= INVALID_SOCKET;
}
freeaddrinfo(addrs);