2004-11-17 jrandom

* Fix to propogate i2psocket options into the SAM bridge correctly (thanks
      Ragnarok!)
This commit is contained in:
jrandom
2004-11-17 19:42:53 +00:00
committed by zzz
parent e733427920
commit cd075fc8a6
3 changed files with 10 additions and 6 deletions

View File

@ -180,9 +180,9 @@ public class SAMStreamSession {
Destination d = new Destination();
d.fromBase64(dest);
// FIXME: we should config I2PSocketOptions here
I2PSocketOptions opts = socketMgr.buildOptions();
opts.setConnectTimeout(60 * 1000);
I2PSocketOptions opts = socketMgr.buildOptions(props);
if (props.getProperty(I2PSocketOptions.PROP_CONNECT_TIMEOUT) == null)
opts.setConnectTimeout(60 * 1000);
_log.debug("Connecting new I2PSocket...");
I2PSocket i2ps = socketMgr.connect(d, opts);