@Override protected void doClose() { if (handler != null) { // close() can be triggered by a wide range of scenarios. It is far simpler just to always use a dispatch than it is to try and track // whether or not this method was called by the same thread that triggered the write clearHandler(new EOFException(), true); } try { socketWrapper.close(); } catch (IOException e) { if (log.isDebugEnabled()) { log.warn(sm.getString("wsRemoteEndpointServer.closeFailed"), e); } } wsWriteTimeout.unregister(this); }
private void close() { connectionState.set(ConnectionState.CLOSED); for (Stream stream : streams.values()) { // The connection is closing. Close the associated streams as no // longer required. stream.receiveReset(Http2Error.CANCEL.getCode()); } try { socketWrapper.close(); } catch (IOException ioe) { log.debug(sm.getString("upgradeHandler.socketCloseFailed"), ioe); } }
@Override protected void doClose() { if (handler != null) { // close() can be triggered by a wide range of scenarios. It is far // simpler just to always use a dispatch than it is to try and track // whether or not this method was called by the same thread that // triggered the write clearHandler(new EOFException(), true); } try { socketWrapper.close(); } catch (IOException e) { if (log.isInfoEnabled()) { log.info(sm.getString("wsRemoteEndpointServer.closeFailed"), e); } } wsWriteTimeout.unregister(this); }
@Override protected void doClose() { if (handler != null) { // close() can be triggered by a wide range of scenarios. It is far // simpler just to always use a dispatch than it is to try and track // whether or not this method was called by the same thread that // triggered the write clearHandler(new EOFException(), true); } try { socketWrapper.close(); } catch (IOException e) { if (log.isInfoEnabled()) { log.info(sm.getString("wsRemoteEndpointServer.closeFailed"), e); } } wsWriteTimeout.unregister(this); }
for (SocketWrapperBase<Long> socketWrapper : connections.values()) { try { socketWrapper.close(); } catch (IOException e) {