forked from I2P_Developers/i2p.i2p
conversion cleanup
This commit is contained in:
@@ -169,8 +169,8 @@ public class I2PSocketEepGet extends EepGet {
|
||||
// This currently duplicates what SocketTimeout is doing in EepGet,
|
||||
// but when that's ripped out of EepGet to use setsotimeout, we'll need this.
|
||||
Properties props = new Properties();
|
||||
props.setProperty(I2PSocketOptions.PROP_CONNECT_TIMEOUT, "" + CONNECT_TIMEOUT);
|
||||
props.setProperty(I2PSocketOptions.PROP_READ_TIMEOUT, "" + INACTIVITY_TIMEOUT);
|
||||
props.setProperty(I2PSocketOptions.PROP_CONNECT_TIMEOUT, Integer.toString(CONNECT_TIMEOUT));
|
||||
props.setProperty(I2PSocketOptions.PROP_READ_TIMEOUT, Integer.toString(INACTIVITY_TIMEOUT));
|
||||
// This is important - even if the underlying socket doesn't have a connect delay,
|
||||
// we want to set it for this connection, so the request headers will go out
|
||||
// in the SYN packet, saving one RTT.
|
||||
|
||||
@@ -240,7 +240,7 @@ public class I2PSocketManagerFactory {
|
||||
if (i2cpHost != null)
|
||||
opts.setProperty(I2PClient.PROP_TCP_HOST, i2cpHost);
|
||||
if (i2cpPort > 0)
|
||||
opts.setProperty(I2PClient.PROP_TCP_PORT, "" + i2cpPort);
|
||||
opts.setProperty(I2PClient.PROP_TCP_PORT, Integer.toString(i2cpPort));
|
||||
|
||||
I2PSession session = client.createSession(myPrivateKeyStream, opts);
|
||||
if (connect)
|
||||
|
||||
Reference in New Issue
Block a user