Changeset 5763d73 for router


Ignore:
Timestamp:
Aug 2, 2016 2:24:48 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
5fcafb6
Parents:
cd4218e
Message:

SSU: Fix peer test stuck when IPv6-only (ticket #1819)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/transport/udp/UDPTransport.java

    rcd4218e r5763d73  
    33043304                } else if (_haveIPv6Address &&_forceRun == FORCE_IPV6 && sinceRunV6 >= MIN_TEST_FREQUENCY) {
    33053305                    locked_runTest(true);
    3306                 } else if (sinceRunV4 >= TEST_FREQUENCY) {
     3306                } else if (sinceRunV4 >= TEST_FREQUENCY && getIPv6Config() != IPV6_ONLY) {
    33073307                    locked_runTest(false);
    33083308                } else if (_haveIPv6Address && sinceRunV6 >= TEST_FREQUENCY) {
     
    33173317                long delay = (TEST_FREQUENCY / 2) + _context.random().nextInt(TEST_FREQUENCY);
    33183318                // if we have 2 addresses, give IPv6 a chance also
    3319                 if (_haveIPv6Address)
     3319                if (_haveIPv6Address && getIPv6Config() != IPV6_ONLY)
    33203320                    delay /= 2;
    33213321                schedule(delay);
Note: See TracChangeset for help on using the changeset viewer.