@Override public void shutdownInput() throws IOException { sock.shutdownInput(); }
public void close() { Socket socket = this.socket; if (socket != null) { try { socket.shutdownInput(); } catch (IOException e) { // Ignore, could not do anymore } try { socket.shutdownOutput(); } catch (IOException e) { // Ignore, could not do anymore } try { socket.close(); } catch (IOException e) { // Ignore, could not do anymore } } this.input = null; this.output = null; this.socket = null; }
@Override protected void finalize() throws Throwable { try { if ( socket != null ) { socket.shutdownInput(); socket.shutdownOutput(); socket.close(); } } catch ( java.io.IOException e ) { // Ignore errors } finally { super.finalize(); } }
/** * See {@link Socket#shutdownInput()}. Calling this method does not trigger mode detection. */ @Override public void shutdownInput() throws IOException { getSocketAllowUnknownMode().shutdownInput(); }
private void closeSocketInput(Socket socket) { try { if (!socket.isInputShutdown()) { socket.shutdownInput(); } } catch (SocketException e) { // There is no way to determine that client closed connection http://stackoverflow.com/a/10241044/999458 // So just to prevent log flooding don't log stacktrace } catch (IOException e) { // onError(new ProxyCacheException("Error closing socket input stream", e)); } }
@Override protected void finalize() throws Throwable { try { if ( socket != null ) { socket.shutdownInput(); socket.shutdownOutput(); socket.close(); } if ( serverSocket != null ) { serverSocket.close(); } } catch ( IOException e ) { // Ignore errors } finally { super.finalize(); } }
@Override protected void finalize() throws Throwable { try { if ( clientSocket != null ) { clientSocket.shutdownInput(); clientSocket.shutdownOutput(); clientSocket.close(); } if ( serverSocket != null ) { serverSocket.close(); } } catch ( java.io.IOException e ) { // Ignore errors } finally { super.finalize(); } }
@Override public void shutdownInput() throws IOException { if (log.isDebugEnabled()) log.debug("shutting down input of " + endpoint()); sock.shutdownInput(); }
private void shutdownInput0(ChannelPromise promise) { try { socket.shutdownInput(); promise.setSuccess(); } catch (Throwable t) { promise.setFailure(t); } }
@Signature public Memory shutdownInput(Environment env, Memory... args) throws IOException { socket.shutdownInput(); return Memory.NULL; }
public void close() throws IOException { if (rs.isOpen()) { rs.close(); if (sc.isOpen()) { sc.socket().shutdownInput(); sc.socket().close(); } bb = null; sc = null; } }
private void shutdownInput0(ChannelPromise promise) { try { socket.shutdownInput(); promise.setSuccess(); } catch (Throwable t) { promise.setFailure(t); } }
s.shutdownInput(); } finally { s.close();
public void close() throws IOException { if (!this.open) { return; } this.open = false; doFlush(); try { this.socket.shutdownOutput(); } catch (IOException ignore) { } try { this.socket.shutdownInput(); } catch (IOException ignore) { } this.socket.close(); }
private void shutdownInput0() throws Exception { if (PlatformDependent.javaVersion() >= 7) { javaChannel().shutdownInput(); } else { javaChannel().socket().shutdownInput(); } }
private void shutdownInput0(ChannelPromise promise) { try { socket.shutdownInput(); promise.setSuccess(); } catch (Throwable t) { promise.setFailure(t); } }
private void shutdownInput0() throws Exception { if (PlatformDependent.javaVersion() >= 7) { javaChannel().shutdownInput(); } else { javaChannel().socket().shutdownInput(); } }
public void terminateReads() throws IOException { if (connection.readClosed()) try { if (getSelectionKey().isValid()) { suspend(SelectionKey.OP_READ); } if (socketChannel.isOpen()) try { socketChannel.socket().shutdownInput(); } catch (SocketException ignored) { // IBM incorrectly throws this exception on ENOTCONN; it's probably less harmful just to swallow it } } catch (ClosedChannelException ignored) { } finally { readTerminated(); } }
private void shutdownInput0() throws Exception { if (PlatformDependent.javaVersion() >= 7) { javaChannel().shutdownInput(); } else { javaChannel().socket().shutdownInput(); } }
return false; } else if (response.getSocketPolicy() == SHUTDOWN_INPUT_AT_END) { socket.shutdownInput(); } else if (response.getSocketPolicy() == SHUTDOWN_OUTPUT_AT_END) { socket.shutdownOutput();