@Override public AsyncFiberSocketChannel shutdownOutput() throws IOException { ac.shutdownOutput(); return this; }
public FiberSocketChannel shutdownOutput() throws IOException { ac.shutdownOutput(); return this; }
/** * Shutdown the connection for writing without closing the channel. * * <p> * Once shutdown for writing then further attempts to write to the channel * will throw {@link ClosedChannelException}. If the output side of the * connection is already shutdown then invoking this method has no effect. * The effect on an outstanding write operation is system dependent and * therefore not specified. * * @return This channel * * @throws NotYetConnectedException * If this channel is not yet connected * @throws ClosedChannelException * If this channel is closed * @throws IOException * If some other I/O error occurs */ public final NioChannel shutdownOutput() throws IOException { this.channel.shutdownOutput(); return this; }
@Override public void shutdownOutput() { if (shutdownOutput.compareAndSet(false, true)) { try { socketChannel.shutdownOutput(); log.info("The session {} is shutdown output", sessionId); } catch (ClosedChannelException e) { log.warn("Shutdown output exception. The session {} is closed", sessionId); } catch (IOException e) { log.error("The session {} shutdown output I/O exception. {}", sessionId, e.getMessage()); } } else { log.info("The session {} is already shutdown output", sessionId); } }
@Override public void shutdownOutput() { if (shutdownOutput.compareAndSet(false, true)) { try { socketChannel.shutdownOutput(); log.info("The session {} is shutdown output", sessionId); } catch (ClosedChannelException e) { log.warn("Shutdown output exception. The session {} is closed", sessionId); } catch (IOException e) { log.error("The session {} shutdown output I/O exception. {}", sessionId, e.getMessage()); } } else { log.info("The session {} is already shutdown output", sessionId); } }
public void suspend() { AsynchronousSocketChannel socket = getSocket(); boolean debugEnabled = log.isDebugEnabled(); try { socket.shutdownInput(); } catch (IOException e) { if (debugEnabled) { log.debug("suspend({}) failed {{}) to shutdown input: {}", this, e.getClass().getSimpleName(), e.getMessage()); } } try { socket.shutdownOutput(); } catch (IOException e) { if (debugEnabled) { log.debug("suspend({}) failed {{}) to shutdown output: {}", this, e.getClass().getSimpleName(), e.getMessage()); } } }
public void suspend() { AsynchronousSocketChannel socket = getSocket(); boolean debugEnabled = log.isDebugEnabled(); try { socket.shutdownInput(); } catch (IOException e) { if (debugEnabled) { log.debug("suspend({}) failed {{}) to shutdown input: {}", this, e.getClass().getSimpleName(), e.getMessage()); } } try { socket.shutdownOutput(); } catch (IOException e) { if (debugEnabled) { log.debug("suspend({}) failed {{}) to shutdown output: {}", this, e.getClass().getSimpleName(), e.getMessage()); } } }
@Override public void shutdownOutput() { try { socketChannel.shutdownOutput(); } catch (ClosedChannelException e) { log.debug("the session {} is closed", e, sessionId); } catch (IOException e) { log.error("the session {} shutdown output error", e, sessionId); } }
public void suspend() { AsynchronousSocketChannel socket = getSocket(); try { socket.shutdownInput(); } catch (IOException e) { } try { socket.shutdownOutput(); } catch (IOException e) { } }
private final void closeConnection() { if(!this.socketChannel.isOpen()) return; try { this.socketChannel.shutdownOutput(); this.socketChannel.shutdownInput(); this.socketChannel.close(); } catch (IOException ioe) { LOGGER.warn("Failed to close connection", ioe); } catch (Throwable th) { LOGGER.warn("Unexspected Exception", th); } finally { this.handler.onDisconnect(this); } }
@Override protected CloseFuture doCloseGracefully() { Object closeId = toString(); return builder().when(closeId, writes).run(closeId, () -> { try { AsynchronousSocketChannel socket = getSocket(); socket.shutdownOutput(); } catch (IOException e) { log.info("doCloseGracefully({}) {} while shutting down output: {}", this, e.getClass().getSimpleName(), e.getMessage()); } }).build().close(false); }
channel.shutdownOutput(); } catch (IOException e) { LOGGER.debug(e.getMessage(), e);
@Override protected CloseFuture doCloseGracefully() { Object closeId = toString(); return builder() .when(closeId, writes) .run(closeId, () -> { try { AsynchronousSocketChannel socket = getSocket(); socket.shutdownOutput(); } catch (IOException e) { log.info("doCloseGracefully({}) {} while shutting down output: {}", this, e.getClass().getSimpleName(), e.getMessage()); } }).build() .close(false); }
netSendBuffer.compact(); if (count < 0) { c.shutdownOutput(); sslEngine.closeOutbound();
channel.shutdownOutput(); } catch (IOException e) { logger.debug(e.getMessage(), e);
@Override protected CloseFuture doCloseGracefully() { return builder().when(writes).run(() -> { try { AsynchronousSocketChannel socket = getSocket(); socket.shutdownOutput(); } catch (IOException e) { } }).build().close(false); }
channelContext.asynchronousSocketChannel.shutdownOutput(); } catch (Throwable e) {
channelContext.asynchronousSocketChannel.shutdownOutput(); } catch (Throwable e) {