Changeset 76655d0


Ignore:
Timestamp:
Oct 19, 2005 10:38:45 PM (15 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
ab9c6d5
Parents:
138f7d3
git-author:
jrandom <jrandom> (10/19/05 22:38:45)
git-committer:
zzz <zzz@…> (10/19/05 22:38:45)
Message:

2005-10-19 jrandom

  • Ported the snark bittorrent client to I2P such that it is compatible with i2p-bt and azneti2p. For usage information, grab an update and run "java -jar lib/i2psnark.jar". It isn't currently multitorrent capable, but adding in support would be fairly easy (see PeerAcceptor?.java:49)
  • Don't allow leaseSets expiring too far in the future (thanks postman)
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/util/EepGet.java

    r138f7d3 r76655d0  
    293293   
    294294    public void stopFetching() { _keepFetching = false; }
    295     public void fetch() {
     295    /**
     296     * Blocking fetch, returning true if the URL was retrieved, false if all retries failed
     297     *
     298     */
     299    public boolean fetch() {
    296300        _keepFetching = true;
    297301
     
    302306                sendRequest();
    303307                doFetch();
    304                 return;
     308                return true;
    305309            } catch (IOException ioe) {
    306310                for (int i = 0; i < _listeners.size(); i++)
     
    329333        for (int i = 0; i < _listeners.size(); i++)
    330334            ((StatusListener)_listeners.get(i)).transferFailed(_url, _bytesTransferred, _bytesRemaining, _currentAttempt);
     335        return false;
    331336    }
    332337
  • history.txt

    r138f7d3 r76655d0  
    1 $Id: history.txt,v 1.300 2005/10/17 22:14:01 dust Exp $
     1$Id: history.txt,v 1.301 2005/10/19 00:15:15 jrandom Exp $
     2
     32005-10-19  jrandom
     4    * Ported the snark bittorrent client to I2P such that it is compatible
     5      with i2p-bt and azneti2p.  For usage information, grab an update and run
     6      "java -jar lib/i2psnark.jar".  It isn't currently multitorrent capable,
     7      but adding in support would be fairly easy (see PeerAcceptor.java:49)
     8    * Don't allow leaseSets expiring too far in the future (thanks postman)
    29
    3102005-10-19  jrandom
  • router/java/src/net/i2p/router/RouterVersion.java

    r138f7d3 r76655d0  
    1616 */
    1717public class RouterVersion {
    18     public final static String ID = "$Revision: 1.271 $ $Date: 2005/10/17 19:39:46 $";
     18    public final static String ID = "$Revision: 1.272 $ $Date: 2005/10/19 00:15:15 $";
    1919    public final static String VERSION = "0.6.1.3";
    20     public final static long BUILD = 2;
     20    public final static long BUILD = 3;
    2121    public static void main(String args[]) {
    2222        System.out.println("I2P Router version: " + VERSION + "-" + BUILD);
  • router/java/src/net/i2p/router/networkdb/kademlia/KademliaNetworkDatabaseFacade.java

    r138f7d3 r76655d0  
    539539    }
    540540   
    541     /** I don't think it'll ever make sense to have a lease last for a full day */
    542     private static final long MAX_LEASE_FUTURE = 24*60*60*1000;
     541    /**
     542     * Don't let leaseSets go 20 minutes into the future
     543     */
     544    static final long MAX_LEASE_FUTURE = 20*60*1000;
    543545   
    544546    /**
  • router/java/src/net/i2p/router/networkdb/kademlia/TransientDataStore.java

    r138f7d3 r76655d0  
    6767    private final static long MAX_FUTURE_PUBLISH_DATE = 5*60*1000;
    6868    /** don't accept tunnels set to expire more than 3 hours in the future, which is insane */
    69     private final static long MAX_FUTURE_EXPIRATION_DATE = 3*60*60*1000;
     69    private final static long MAX_FUTURE_EXPIRATION_DATE = KademliaNetworkDatabaseFacade.MAX_LEASE_FUTURE;
    7070   
    7171    public void put(Hash key, DataStructure data) {
Note: See TracChangeset for help on using the changeset viewer.