forked from I2P_Developers/i2p.i2p
only reset the sotimeout if not proxied
This commit is contained in:
@ -678,10 +678,13 @@ public class EepGet {
|
|||||||
else
|
else
|
||||||
timeout.setInactivityTimeout(INACTIVITY_TIMEOUT);
|
timeout.setInactivityTimeout(INACTIVITY_TIMEOUT);
|
||||||
}
|
}
|
||||||
|
if (!_shouldProxy) {
|
||||||
|
// we only set the soTimeout before the headers if not proxied
|
||||||
if (_fetchInactivityTimeout > 0)
|
if (_fetchInactivityTimeout > 0)
|
||||||
_proxy.setSoTimeout(_fetchInactivityTimeout);
|
_proxy.setSoTimeout(_fetchInactivityTimeout);
|
||||||
else
|
else
|
||||||
_proxy.setSoTimeout(INACTIVITY_TIMEOUT);
|
_proxy.setSoTimeout(INACTIVITY_TIMEOUT);
|
||||||
|
}
|
||||||
|
|
||||||
if (_redirectLocation != null) {
|
if (_redirectLocation != null) {
|
||||||
// we also are here after a 407
|
// we also are here after a 407
|
||||||
|
Reference in New Issue
Block a user