forked from I2P_Developers/i2p.i2p
Fixups after props from:
i2p.i2p.zzz.pcap i2p.i2p.zzz.test i2p.i2p.zzz.test2 i2p.i2p.zzz.update Javadoc fixes Checklist tweak -1
This commit is contained in:
@ -59,7 +59,6 @@ public class BitField
|
|||||||
// cleared or clear them explicitly ourselves.
|
// cleared or clear them explicitly ourselves.
|
||||||
System.arraycopy(bitfield, 0, this.bitfield, 0, arraysize);
|
System.arraycopy(bitfield, 0, this.bitfield, 0, arraysize);
|
||||||
|
|
||||||
this.count = 0;
|
|
||||||
for (int i = 0; i < size; i++)
|
for (int i = 0; i < size; i++)
|
||||||
if (get(i))
|
if (get(i))
|
||||||
this.count++;
|
this.count++;
|
||||||
|
@ -958,16 +958,11 @@ class PeerCoordinator implements PeerListener
|
|||||||
*/
|
*/
|
||||||
public boolean gotPiece(Peer peer, PartialPiece pp)
|
public boolean gotPiece(Peer peer, PartialPiece pp)
|
||||||
{
|
{
|
||||||
if (metainfo == null || storage == null || storage.isChecking()) {
|
if (metainfo == null || storage == null || storage.isChecking() || halted) {
|
||||||
pp.release();
|
pp.release();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
int piece = pp.getPiece();
|
int piece = pp.getPiece();
|
||||||
if (halted) {
|
|
||||||
_log.info("Got while-halted piece " + piece + "/" + metainfo.getPieces() +" from " + peer + " for " + metainfo.getName());
|
|
||||||
pp.release();
|
|
||||||
return true; // We don't actually care anymore.
|
|
||||||
}
|
|
||||||
|
|
||||||
synchronized(wantedPieces)
|
synchronized(wantedPieces)
|
||||||
{
|
{
|
||||||
|
@ -798,15 +798,6 @@ public class RouterConsoleRunner implements RouterApp {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @since 0.8.8 */
|
|
||||||
private static class ServerShutdown implements Runnable {
|
|
||||||
public void run() {
|
|
||||||
try {
|
|
||||||
_server.stop();
|
|
||||||
} catch (Exception ie) {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private Properties webAppProperties() {
|
private Properties webAppProperties() {
|
||||||
return webAppProperties(_context.getConfigDir().getAbsolutePath());
|
return webAppProperties(_context.getConfigDir().getAbsolutePath());
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ import net.i2p.data.Hash;
|
|||||||
* Yes we could dump it natively and write a wireshark dissector. That sounds hard.
|
* Yes we could dump it natively and write a wireshark dissector. That sounds hard.
|
||||||
* And we wouldn't get the TCP stream analysis built into the tools.
|
* And we wouldn't get the TCP stream analysis built into the tools.
|
||||||
*
|
*
|
||||||
* @author zzz
|
* @since 0.9.4
|
||||||
*/
|
*/
|
||||||
public class PcapWriter {
|
public class PcapWriter {
|
||||||
|
|
||||||
|
@ -25,7 +25,6 @@ public interface ClientAppManager {
|
|||||||
* Only required for apps used by other apps.
|
* Only required for apps used by other apps.
|
||||||
*
|
*
|
||||||
* @param app non-null
|
* @param app non-null
|
||||||
* @param name non-null
|
|
||||||
* @return true if successful, false if duplicate name
|
* @return true if successful, false if duplicate name
|
||||||
*/
|
*/
|
||||||
public boolean register(ClientApp app);
|
public boolean register(ClientApp app);
|
||||||
@ -35,7 +34,6 @@ public interface ClientAppManager {
|
|||||||
* Only required for apps used by other apps.
|
* Only required for apps used by other apps.
|
||||||
*
|
*
|
||||||
* @param app non-null
|
* @param app non-null
|
||||||
* @param name non-null
|
|
||||||
*/
|
*/
|
||||||
public void unregister(ClientApp app);
|
public void unregister(ClientApp app);
|
||||||
|
|
||||||
@ -43,7 +41,6 @@ public interface ClientAppManager {
|
|||||||
* Get a registered app.
|
* Get a registered app.
|
||||||
* Only used for apps finding other apps.
|
* Only used for apps finding other apps.
|
||||||
*
|
*
|
||||||
* @param app non-null
|
|
||||||
* @param name non-null
|
* @param name non-null
|
||||||
* @return client app or null
|
* @return client app or null
|
||||||
*/
|
*/
|
||||||
|
@ -73,9 +73,8 @@ public abstract class Addresses {
|
|||||||
/**
|
/**
|
||||||
* @return a sorted set of all addresses
|
* @return a sorted set of all addresses
|
||||||
* @param includeSiteLocal whether to include private like 192.168.x.x
|
* @param includeSiteLocal whether to include private like 192.168.x.x
|
||||||
* @param includeLoopAndWildcard whether to include 127.x.x.x and 0.0.0.0
|
* @param includeLoopbackAndWildcard whether to include 127.x.x.x and 0.0.0.0
|
||||||
* @param includeIPv6 whether to include IPV6
|
* @param includeIPv6 whether to include IPV6
|
||||||
* @param includeWildCard whether to include 0.0.0.0 and/or 0:0:0:0:0:0 (includeLocal must be true)
|
|
||||||
* @return an array of all addresses
|
* @return an array of all addresses
|
||||||
* @since 0.9.4
|
* @since 0.9.4
|
||||||
*/
|
*/
|
||||||
|
44
history.txt
44
history.txt
@ -1,3 +1,47 @@
|
|||||||
|
2012-10-28 zzz
|
||||||
|
* Addresses:
|
||||||
|
- Add methods for connectivity detection
|
||||||
|
- Remove Hamachi restriction
|
||||||
|
* Banlist: renamed
|
||||||
|
* Clients: New interface for clients started via clients.config, and a new
|
||||||
|
manager to track the lifecycle and start/stop clients on demand.
|
||||||
|
(ticket #347)
|
||||||
|
* Console:
|
||||||
|
- Add console password form to configui.jsp
|
||||||
|
- Consolidate all the jsp formhandler boilerplate in the new formhandler.jsi
|
||||||
|
- Store form handler nonces in the servlet session instead of system properties,
|
||||||
|
to prevent cross-session interference
|
||||||
|
- Bypass nonces if console password enabled
|
||||||
|
- Remove ports from port mapper on shutdown, other changes to
|
||||||
|
track actual ports better (ticket #731)
|
||||||
|
- Prep for RouterApp interface by storing context in a field,
|
||||||
|
shuffle around what's static and what's not (ticket #347)
|
||||||
|
- Convert to RouterApp interface
|
||||||
|
- Convert from basic to digest authentication
|
||||||
|
- Use new password manager (ticket #731)
|
||||||
|
* Core: New password manager for storing passwords in router.config
|
||||||
|
in consistent ways, including salting and hashing if possible.
|
||||||
|
(ticket #731)
|
||||||
|
* i2ptunnel:
|
||||||
|
- Convert HTTP and CONNECT proxies from basic to digest authentication
|
||||||
|
- Bypass nonces if console password enabled
|
||||||
|
- Convert to ClientApp interface
|
||||||
|
- Synchronization improvements
|
||||||
|
* Streaming: Add pcap debug facility, from i2p.i2p.zzz.pcap
|
||||||
|
* Transport:
|
||||||
|
- Add a simple network monitor
|
||||||
|
- Add new reachability state for network disconnected
|
||||||
|
- Prevent any tunnel building when disconnected (ticket #519)
|
||||||
|
- Don't unleash watchdog when disconnected
|
||||||
|
- Split up NTCPConnection's single _bwRequests Set into inbound and outbound,
|
||||||
|
make FIFOBandwithLimiter.Request unidirectional (ticket #719)
|
||||||
|
* Update: Major redesign of the update facilities:
|
||||||
|
- Generic interfaces for updating and checking things
|
||||||
|
- Allow checkers and updaters outside router context
|
||||||
|
- Hide update buttons after downloading update (ticket #484)
|
||||||
|
- Add update-via-i2psnark facility
|
||||||
|
- Don't hold references to updaters after completion
|
||||||
|
|
||||||
* 2012-10-27 0.9.3 released
|
* 2012-10-27 0.9.3 released
|
||||||
|
|
||||||
2012-10-25 zzz
|
2012-10-25 zzz
|
||||||
|
@ -6,7 +6,6 @@ Sync with mtn.i2p2.i2p
|
|||||||
Start with a clean checkout mtn -d i2p.mtn co --branch=i2p.i2p
|
Start with a clean checkout mtn -d i2p.mtn co --branch=i2p.i2p
|
||||||
Copy over override.properties to set build.built-by
|
Copy over override.properties to set build.built-by
|
||||||
Double-check trust list
|
Double-check trust list
|
||||||
Deploy the Jetty archive, a clean checkout lacks it
|
|
||||||
|
|
||||||
Change revision in:
|
Change revision in:
|
||||||
history.txt
|
history.txt
|
||||||
|
@ -18,7 +18,7 @@ public class RouterVersion {
|
|||||||
/** deprecated */
|
/** deprecated */
|
||||||
public final static String ID = "Monotone";
|
public final static String ID = "Monotone";
|
||||||
public final static String VERSION = CoreVersion.VERSION;
|
public final static String VERSION = CoreVersion.VERSION;
|
||||||
public final static long BUILD = 0;
|
public final static long BUILD = 1;
|
||||||
|
|
||||||
/** for example "-test" */
|
/** for example "-test" */
|
||||||
public final static String EXTRA = "";
|
public final static String EXTRA = "";
|
||||||
|
@ -94,7 +94,6 @@ public class RouterAppManager implements ClientAppManager {
|
|||||||
* Only required for apps used by other apps.
|
* Only required for apps used by other apps.
|
||||||
*
|
*
|
||||||
* @param app non-null
|
* @param app non-null
|
||||||
* @param name non-null
|
|
||||||
* @return true if successful, false if duplicate name
|
* @return true if successful, false if duplicate name
|
||||||
*/
|
*/
|
||||||
public boolean register(ClientApp app) {
|
public boolean register(ClientApp app) {
|
||||||
@ -109,7 +108,6 @@ public class RouterAppManager implements ClientAppManager {
|
|||||||
* Only required for apps used by other apps.
|
* Only required for apps used by other apps.
|
||||||
*
|
*
|
||||||
* @param app non-null
|
* @param app non-null
|
||||||
* @param name non-null
|
|
||||||
*/
|
*/
|
||||||
public void unregister(ClientApp app) {
|
public void unregister(ClientApp app) {
|
||||||
_registered.remove(app.getName(), app);
|
_registered.remove(app.getName(), app);
|
||||||
@ -121,7 +119,6 @@ public class RouterAppManager implements ClientAppManager {
|
|||||||
* Do not hold a static reference.
|
* Do not hold a static reference.
|
||||||
* If you only need to find a port, use the PortMapper instead.
|
* If you only need to find a port, use the PortMapper instead.
|
||||||
*
|
*
|
||||||
* @param app non-null
|
|
||||||
* @param name non-null
|
* @param name non-null
|
||||||
* @return client app or null
|
* @return client app or null
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user