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;
|
||||
}
|
||||
FUERTE_LOG_DEBUG << "connecting failed: " << ec.message() << "\n";
|
||||
if (retries > 0) {
|
||||
if (retries > 0 && ec != asio_ns::error::operation_aborted) {
|
||||
tryConnect(retries - 1);
|
||||
} else {
|
||||
shutdownConnection(ErrorCondition::CouldNotConnect);
|
||||
|
|
|
@ -134,7 +134,7 @@ void VstConnection<ST>::tryConnect(unsigned retries) {
|
|||
return;
|
||||
}
|
||||
FUERTE_LOG_DEBUG << "connecting failed: " << ec.message() << "\n";
|
||||
if (retries > 0) {
|
||||
if (retries > 0 && ec != asio_ns::error::operation_aborted) {
|
||||
tryConnect(retries - 1);
|
||||
} else {
|
||||
shutdownConnection(ErrorCondition::CouldNotConnect);
|
||||
|
|
Loading…
Reference in New Issue