mirror of https://gitee.com/bigwinds/arangodb
Do not retry connect on canceled connections (#6559)
This commit is contained in:
parent
a93db9a6b9
commit
6db05b8b12
|
@ -213,7 +213,7 @@ void HttpConnection<ST>::tryConnect(unsigned retries) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FUERTE_LOG_DEBUG << "connecting failed: " << ec.message() << "\n";
|
FUERTE_LOG_DEBUG << "connecting failed: " << ec.message() << "\n";
|
||||||
if (retries > 0) {
|
if (retries > 0 && ec != asio_ns::error::operation_aborted) {
|
||||||
tryConnect(retries - 1);
|
tryConnect(retries - 1);
|
||||||
} else {
|
} else {
|
||||||
shutdownConnection(ErrorCondition::CouldNotConnect);
|
shutdownConnection(ErrorCondition::CouldNotConnect);
|
||||||
|
|
|
@ -134,7 +134,7 @@ void VstConnection<ST>::tryConnect(unsigned retries) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
FUERTE_LOG_DEBUG << "connecting failed: " << ec.message() << "\n";
|
FUERTE_LOG_DEBUG << "connecting failed: " << ec.message() << "\n";
|
||||||
if (retries > 0) {
|
if (retries > 0 && ec != asio_ns::error::operation_aborted) {
|
||||||
tryConnect(retries - 1);
|
tryConnect(retries - 1);
|
||||||
} else {
|
} else {
|
||||||
shutdownConnection(ErrorCondition::CouldNotConnect);
|
shutdownConnection(ErrorCondition::CouldNotConnect);
|
||||||
|
|
Loading…
Reference in New Issue