Changeset 715bde5


Ignore:
Timestamp:
Aug 20, 2012 12:12:48 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
38b0927
Parents:
6c2eb31
Message:
  • Streaming: Increase max connection timeout
File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/streaming/java/src/net/i2p/client/streaming/Connection.java

    r6c2eb31 r715bde5  
    8888    public static final int DISCONNECT_TIMEOUT = 5*60*1000;
    8989   
     90    private static final long DEFAULT_CONNECT_TIMEOUT = 60*1000;
     91    private static final long MAX_CONNECT_TIMEOUT = 2*60*1000;
     92
    9093    public static final int MAX_WINDOW_SIZE = 128;
    9194   
     
    884887                return;
    885888            }
    886             if (timeLeft > 60*1000)
    887                 timeLeft = 60*1000;
    888             if (_options.getConnectTimeout() <= 0)
    889                 timeLeft = 60*1000;
     889            if (timeLeft > MAX_CONNECT_TIMEOUT)
     890                timeLeft = MAX_CONNECT_TIMEOUT;
     891            else if (_options.getConnectTimeout() <= 0)
     892                timeLeft = DEFAULT_CONNECT_TIMEOUT;
    890893           
    891894            if (_log.shouldLog(Log.DEBUG))
Note: See TracChangeset for help on using the changeset viewer.