@Override public void onStreamTimeout(ListenerInputstreamWrapper timeoutInputStream, InputStream delegate) { try { timeoutInputStream.close(); } catch (IOException e) { logger.log(e); } }
@Override public void onStreamException( ListenerInputstreamWrapper timeoutInputStream, InputStream delegate, Throwable e) { logger.info("Stream Exception: " + e); // TODO... remove active streams try { timeoutInputStream.close(); } catch (IOException e1) { logger.log(e); } }