I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit c732c1c0 authored by zzz's avatar zzz
Browse files

I2PTunnel: Catch unchecked exceptions in server accept loop (ticket #1070)

parent 4aa1bba5
No related branches found
No related tags found
No related merge requests found
...@@ -449,10 +449,18 @@ public class I2PTunnelServer extends I2PTunnelTask implements Runnable { ...@@ -449,10 +449,18 @@ public class I2PTunnelServer extends I2PTunnelTask implements Runnable {
_log.error("Error accepting", ce); _log.error("Error accepting", ce);
// not killing the server.. // not killing the server..
try { try {
Thread.currentThread().sleep(500); Thread.sleep(500);
} catch (InterruptedException ie) {} } catch (InterruptedException ie) {}
} catch(SocketTimeoutException ste) { } catch(SocketTimeoutException ste) {
// ignored, we never set the timeout // ignored, we never set the timeout
} catch (Exception e) {
// streaming borkage
if (_log.shouldLog(Log.ERROR))
_log.error("Uncaught exception accepting", e);
// not killing the server..
try {
Thread.sleep(500);
} catch (InterruptedException ie) {}
} }
} }
if (_executor != null) if (_executor != null)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment