- Timestamp:
- Nov 10, 2016 3:09:39 PM (4 years ago)
- Branches:
- master
- Children:
- aeeee0e
- Parents:
- 24ecc85
- Location:
- router/java/src/net/i2p/router
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
router/java/src/net/i2p/router/RouterVersion.java
r24ecc85 rc3181d85 19 19 public final static String ID = "Monotone"; 20 20 public final static String VERSION = CoreVersion.VERSION; 21 public final static long BUILD = 7;21 public final static long BUILD = 8; 22 22 23 23 /** for example "-test" */ -
router/java/src/net/i2p/router/transport/udp/UDPTransport.java
r24ecc85 rc3181d85 1770 1770 // never get any introducers) 1771 1771 int count = _peersByIdent.size(); 1772 if (alwaysPreferUDP() || count < _min_peers || 1773 (_haveIPv6Address && count < _min_v6_peers) || 1774 (introducersRequired() && _introManager.introducerCount() < MIN_INTRODUCER_POOL)) 1772 if (alwaysPreferUDP()) { 1775 1773 return _cachedBid[SLOW_PREFERRED_BID]; 1776 else if (preferUDP()) 1774 } else if (count < _min_peers || 1775 (_haveIPv6Address && count < _min_v6_peers) || 1776 (introducersRequired() && _introManager.introducerCount() < MIN_INTRODUCER_POOL)) { 1777 // Even if we haven't hit our minimums, give NTCP a chance some of the time. 1778 // This may make things work a little faster at startup 1779 // (especially when we have an IPv6 address and the increased minimums), 1780 // and if UDP is completely blocked we'll still have some connectivity. 1781 // TODO After some time, decide that UDP is blocked/broken and return TRANSIENT_FAIL_BID? 1782 if (_context.random().nextInt(4) == 0) 1783 return _cachedBid[SLOWEST_BID]; 1784 else 1785 return _cachedBid[SLOW_PREFERRED_BID]; 1786 } else if (preferUDP()) { 1777 1787 return _cachedBid[SLOW_BID]; 1778 else if (haveCapacity()) {1788 } else if (haveCapacity()) { 1779 1789 if (addr.getCost() > DEFAULT_COST) 1780 1790 return _cachedBid[SLOWEST_COST_BID];
Note: See TracChangeset
for help on using the changeset viewer.