Package io.undertow.util
Class ConnectionUtils
java.lang.Object
io.undertow.util.ConnectionUtils
- Author:
- Stuart Douglas
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
cleanClose
(org.xnio.StreamConnection connection, Closeable... additional) Cleanly close a connection, by shutting down and flushing writes and then draining reads.
-
Method Details
-
cleanClose
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 connectionadditional
- Any additional resources to close once the connection has been closed
-