Better closes for SSL.
This commit is contained in:
parent
ced68ab29b
commit
268e8bdbd7
|
@ -177,21 +177,20 @@ public class SPDYAsyncConnection extends AbstractConnection implements AsyncConn
|
|||
try
|
||||
{
|
||||
AsyncEndPoint endPoint = getEndPoint();
|
||||
if (onlyOutput)
|
||||
try
|
||||
{
|
||||
try
|
||||
{
|
||||
logger.debug("Shutting down output {}", endPoint);
|
||||
endPoint.shutdownOutput();
|
||||
}
|
||||
catch (IOException x)
|
||||
// We need to gently close first, to allow
|
||||
// SSL close alerts to be sent by Jetty
|
||||
logger.debug("Shutting down output {}", endPoint);
|
||||
endPoint.shutdownOutput();
|
||||
if (!onlyOutput)
|
||||
{
|
||||
logger.debug("Closing {}", endPoint);
|
||||
endPoint.close();
|
||||
}
|
||||
}
|
||||
else
|
||||
catch (IOException x)
|
||||
{
|
||||
logger.debug("Closing {}", endPoint);
|
||||
endPoint.close();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue