… | |
… | |
724 | double retry_int = double (retry_cnt & 3 ? (retry_cnt & 3) : 1 << (retry_cnt >> 2)) * 0.25; |
724 | double retry_int = double (retry_cnt & 3 ? (retry_cnt & 3) : 1 << (retry_cnt >> 2)) * 0.25; |
725 | |
725 | |
726 | if (retry_int < 3600 * 8) |
726 | if (retry_int < 3600 * 8) |
727 | retry_cnt++; |
727 | retry_cnt++; |
728 | |
728 | |
729 | if (connectmode == conf_node::C_ONDEMAND |
|
|
730 | && retry_int > ::conf.keepalive) |
|
|
731 | retry_int = ::conf.keepalive; |
|
|
732 | |
|
|
733 | ts = NOW + retry_int; |
729 | ts = NOW + retry_int; |
734 | |
730 | |
735 | if (conf->hostname) |
731 | if (conf->hostname) |
736 | { |
732 | { |
737 | reset_dstaddr (); |
733 | reset_dstaddr (); |