Fix for InternalSockets

This commit is contained in:
zzz
2023-10-14 14:36:18 -04:00
parent 9f04bb04b4
commit 04c0c22ab8

View File

@@ -425,7 +425,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn
// Do not set keepalive for internal sockets.
boolean keepalive = !(s instanceof InternalSocket);
// indent -------------------------------------------------------------
while (keepalive) {
do {
// indent -------------------------------------------------------------
if (requestCount > 0) {
if (_log.shouldInfo())
@@ -1485,7 +1485,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn
// go around again
requestCount++;
// indent -------------------------------------------------------------
} // while (keepalive)
} while (keepalive);
// indent -------------------------------------------------------------
} catch(IOException ex) {
// This is normal for keepalive when the browser closed the socket,