data.rowbuffer.add( 0, data.outputRowMeta.readData( di ) ); } catch ( SocketTimeoutException e ) { logError( BaseMessages.getString( PKG, "System.Log.UnexpectedError" ) + " : " + e.toString() ); logError( Const.getStackTracker( e ) ); setErrors( 1 );
@Override public void onSocketTimeoutException(SocketTimeoutException e) { Log.i("BaseApiListener", e.toString()); }
/** * {@inheritDoc} */ public IHttpResponse get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { try { return getResponse(timeout, unit); } catch (SocketTimeoutException stoe) { throw new TimeoutException(stoe.toString()); } catch (IOException ioe) { throw new ExecutionException(ioe.toString(), ioe); } }
@Override public void onException(SocketTimeoutException stoe) { if (isRetryableMethod()) { if (currentRetryNum < getMaxRetries()) { if (LOG.isLoggable(Level.FINE)) { LOG.fine("try to retrying request (retry num " + currentRetryNum + "). I/O exception caught when processing request " + stoe.toString()); } retry(); return; } else { if (LOG.isLoggable(Level.FINE)) { LOG.fine("max retries " + getMaxRetries() + ". I/O exception caught when processing request " + stoe.toString()); } } } super.onException(stoe); }
} catch (SocketTimeoutException e) { logger.debug("temp timeout {}", e.toString()); } catch (Exception e) { throw new InterruptedException();
LOG.fine("throwing socket timeout exception " + stException.toString());
/** * to ensure we throw the correct exception in case a timeout occurs we provide * a final implementation of this method here, delegate to subclass-specific implementations * and handle the correct conversion of the exception in one place. */ public final Socket createSocket(String host, int port, int timeout) throws UnknownHostException, IOException { try { return doCreateSocket(host, port, timeout); } catch(SocketTimeoutException e) { throw new TIMEOUT(e.toString()); } }
error = ex.toString(); return null; } catch (IOException ex) {
final long now = System.currentTimeMillis(); if (((now - keepalive) > TIMEOUT) || ((now - brother.keepalive) > TIMEOUT)) { Log.info(this.getClass().getSimpleName() + " " + e.toString()); setShutdown();
log.log(Level.FINEST, e.toString(), e); } catch (IOException e) { log.log(Level.FINEST, e.toString(), e);
task.done(ste.toString(), null); return new TaggedData(request.url.toURI(), HTTP_GATEWAY_TIMEOUT, request.useCacheFile);
task.done(ste.toString(), null); return new TaggedData(request.url.toURI(), HTTP_GATEWAY_TIMEOUT, request.useCacheFile);
Log.e(TAG, "Socket timed out! " + hostName + " : " + currentAddress + " : " + s.toString() + " after: " + JoH.msSince(time_start)); statusLog(hostName, JoH.hourMinuteString() + " " + s.toString()); } catch (IOException e) { Log.e(TAG, "caught IOException! " + hostName + " : " + currentAddress + " : " + " : " + e.toString());
Log.e(TAG, "Socket timed out! " + hostName + " : " + currentAddress + " : " + s.toString() + " after: " + JoH.msSince(time_start)); statusLog(hostName, JoH.hourMinuteString() + " " + s.toString()); } catch (IOException e) { Log.e(TAG, "caught IOException! " + hostName + " : " + currentAddress + " : " + " : " + e.toString());
return trd_list; } catch (SocketTimeoutException s) { Log.e(TAG, "Socket timed out! " + hostName + " : " + currentAddress + " : " + s.toString() + " after: " + JoH.msSince(time_start)); statusLog(hostName, JoH.hourMinuteString() + " " + s.toString()); } catch (IOException e) { Log.e(TAG, "caught IOException! " + hostName + " : " + currentAddress + " : " + " : " + e.toString());
return trd_list; } catch (SocketTimeoutException s) { Log.e(TAG, "Socket timed out! " + hostName + " : " + currentAddress + " : " + s.toString() + " after: " + JoH.msSince(time_start)); statusLog(hostName, JoH.hourMinuteString() + " " + s.toString()); } catch (IOException e) { Log.e(TAG, "caught IOException! " + hostName + " : " + currentAddress + " : " + " : " + e.toString());
final long now = System.currentTimeMillis(); if ((muxNopKeepAlive + Constants.MUX_KEEP_ALIVE) < now) { Log.debug(this.getClass().getSimpleName() + " " + e.toString()); sendNOP(); muxNopKeepAlive = now;
final long now = System.currentTimeMillis(); if ((clusterNopKeepAlive + Constants.CLUSTER_KEEP_ALIVE) < now) { Log.debug(this.getClass().getSimpleName() + " " + e.toString()); sendNOP(); clusterNopKeepAlive = now;
return trd_list; } catch (SocketTimeoutException s) { Log.e(TAG, "Socket timed out! " + hostName + " : " + currentAddress + " : " + s.toString() + " after: " + JoH.msSince(time_start)); statusLog(hostName, JoH.hourMinuteString() + " " + s.toString()); } catch (IOException e) { Log.e(TAG, "caught IOException! " + hostName + " : " + currentAddress + " : " + " : " + e.toString());
throw e; } catch (SocketTimeoutException e) { log.log(Level.FINER, e.toString(), e);