160161162163164165166167168169170
sink.write(buf); } sink.shutdownWrites(); if(!sink.flush()) { sink.getWriteSetter().set(ChannelListeners.flushingChannelListener(null, null)); sink.resumeWrites(); } channel.sendClose(); } catch (IOException e) { throw new RuntimeException(e);
8081828384858687888990
sink.write(buf); } sink.shutdownWrites(); if(!sink.flush()) { sink.getWriteSetter().set(ChannelListeners.flushingChannelListener(null, null)); sink.resumeWrites(); } channel.sendClose(); } catch (IOException e) { throw new RuntimeException(e); }