mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
Merge pull request #853 from linhaojun857/fix_client_retry
Fix client retry bug
This commit is contained in:
commit
7e14e48a98
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user