Commit 29b2ddcc authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

Close the connection after every operation, otherwise long-standing movers...

Close the connection after every operation, otherwise long-standing movers (xroot) will leak sockets!
parent a08d113d
......@@ -102,6 +102,8 @@ extern "C" {
}
// synchronously read and parse answer
parseAnswer(sockfd, errorcode, errormsg);
// close the connection
close(sockfd);
}
catch (std::exception& e) {
// report any exception to the caller
......@@ -143,6 +145,8 @@ extern "C" {
}
// synchronously read and parse answer
parseAnswer(sockfd, errorcode, errormsg);
// close the connection
close(sockfd);
}
catch (std::exception& e) {
// report any exception to the caller
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment