Changeset c155c4b6


Ignore:
Timestamp:
Jan 6, 2012 3:07:25 AM (9 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
5067499f
Parents:
cc16834
Message:

Return 1 if eepget transfer fails (fixes #576)

Files:
5 edited

Legend:

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

    rcc16834 rc155c4b6  
    221221            get.addAuthorization(username, password);
    222222        get.addStatusListener(get.new CLIStatusListener(markSize, lineLen));
    223         get.fetch(CONNECT_TIMEOUT, -1, inactivityTimeout);
     223        if (!get.fetch(CONNECT_TIMEOUT, -1, inactivityTimeout))
     224            System.exit(1);
    224225    }
    225226
  • core/java/src/net/i2p/util/EepHead.java

    rcc16834 rc155c4b6  
    9393        } else {
    9494            System.err.println("Failed " + url);
     95            System.exit(1);
    9596        }
    9697    }
  • core/java/src/net/i2p/util/PartialEepGet.java

    rcc16834 rc155c4b6  
    8484        } else {
    8585            System.err.println("Failed " + url);
     86            System.exit(1);
    8687        }
    8788    }
  • core/java/src/net/i2p/util/SSLEepGet.java

    rcc16834 rc155c4b6  
    162162        get._commandLine = true;
    163163        get.addStatusListener(get.new CLIStatusListener(1024, 40));
    164         get.fetch(45*1000, -1, 60*1000);
     164        if(!get.fetch(45*1000, -1, 60*1000))
     165            System.exit(1);
    165166    }
    166167   
  • history.txt

    rcc16834 rc155c4b6  
     12012-01-06 kytv
     2 * EepGet: If transfer fails, exit with status 1 (fixes #576)
     3
    14* 2012-01-06 0.8.12 released
    25
    362012-01-04 kytv
    4 * Update geoip.txt based on Maxmind GeoLite Country database from 2011-12-08
     7 * Update geoip.txt based on Maxmind GeoLite Country database from 2011-12-08
    58
    692012-01-02 kytv
    7 * Wrapper 3.5.13 for everything other than armv7.
     10 * Wrapper 3.5.13 for everything other than armv7.
    811
    9122012-01-02 zzz
Note: See TracChangeset for help on using the changeset viewer.