… | |
… | |
1014 | slog (L_TRACE, "%s >> PT_PING", conf->nodename); |
1014 | slog (L_TRACE, "%s >> PT_PING", conf->nodename); |
1015 | |
1015 | |
1016 | // we send pings instead of auth packets after some retries, |
1016 | // we send pings instead of auth packets after some retries, |
1017 | // so reset the retry counter and establish a connection |
1017 | // so reset the retry counter and establish a connection |
1018 | // when we receive a ping. |
1018 | // when we receive a ping. |
1019 | if (!ictx) |
1019 | if (!(ictx && octx)) |
1020 | { |
1020 | { |
1021 | if (auth_rate_limiter.can (rsi)) |
1021 | if (auth_rate_limiter.can (rsi)) |
1022 | send_auth_request (rsi, true); |
1022 | send_auth_request (rsi, true); |
1023 | } |
1023 | } |
1024 | else |
1024 | else |