Merge pull request #853 from linhaojun857/fix_client_retry

Fix client retry bug
This commit is contained in:
Leonid Stryzhevskyi 2023-09-16 02:19:43 +03:00 committed by GitHub
commit 7e14e48a98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,6 +150,7 @@ RequestExecutor::executeAsync(
{}
Action act() override {
m_context.attempt ++;
if(!m_connectionHandle) {
return m_this->getConnectionAsync().callbackTo(&ExecutorCoroutine::onConnection);
@ -165,7 +166,6 @@ RequestExecutor::executeAsync(
}
Action execute() {
m_context.attempt ++;
return m_this->executeOnceAsync(m_method, m_path, m_headers, m_body, m_connectionHandle).callbackTo(&ExecutorCoroutine::onResponse);
}