Class ConnectionUtils

java.lang.Object
io.undertow.util.ConnectionUtils

public class ConnectionUtils extends Object
Author:
Stuart Douglas
  • Method Details

    • cleanClose

      public static void cleanClose(org.xnio.StreamConnection connection, Closeable... additional)
      Cleanly close a connection, by shutting down and flushing writes and then draining reads.

      If this fails the connection is forcibly closed.

      Parameters:
      connection - The connection
      additional - Any additional resources to close once the connection has been closed