Changeset 179

Show
Ignore:
Timestamp:
03/01/06 11:17:32 (2 years ago)
Author:
dsandler
Message:

Turn off FreePastry?'s port-increment "feature". Apparently, when you
construct a Node, the node factory internally increments the port number for
the next construction, which was messing up our elaborate joining code (which
makes multiple attempts to construct the node and join the network).

Of course, this won't actually work until the Pastry jar is updated to pay
attention to the pastry_socket_increment_port_after_construction option
we're setting. Coming soon...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • feedtree/trunk/src/net/feedtree/core/client/Client.java

    r178 r179  
    253253        status.notifyStatus(ClientStatus.STATUS_STARTING, 
    254254                "Starting FeedTree client"); 
     255 
     256        // Pastry "feature" we must turn off: don't +1 the port number every 
     257        // time we construct a node.  (This feature causes our 
     258        // multiple-join-retries code to fail utterly.) 
     259        g_pastryEnv.getParameters().setBoolean( 
     260                "pastry_socket_increment_port_after_construction", 
     261                false); 
     262         
    255263         
    256264        SocketPastryNodeFactory factory = null;