We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41c63bf commit 4712d97Copy full SHA for 4712d97
event/hloop.h
@@ -640,7 +640,7 @@ HV_INLINE void reconn_setting_reset(reconn_setting_t* reconn) {
640
HV_INLINE bool reconn_setting_can_retry(reconn_setting_t* reconn) {
641
++reconn->cur_retry_cnt;
642
return reconn->max_retry_cnt == INFINITE ||
643
- reconn->cur_retry_cnt < reconn->max_retry_cnt;
+ reconn->cur_retry_cnt <= reconn->max_retry_cnt;
644
}
645
646
HV_INLINE uint32_t reconn_setting_calc_delay(reconn_setting_t* reconn) {
0 commit comments