Example usage for org.apache.http.impl.nio.reactor SSLIOSession isOutboundDone

List of usage examples for org.apache.http.impl.nio.reactor SSLIOSession isOutboundDone

Introduction

In this page you can find the example usage for org.apache.http.impl.nio.reactor SSLIOSession isOutboundDone.

Prototype

public synchronized boolean isOutboundDone() 

Source Link

Usage

From source file:org.apache.axis2.transport.nhttp.SSLServerIOEventDispatch.java

public void timeout(final IOSession session) {
    DefaultNHttpServerConnection conn = (DefaultNHttpServerConnection) session.getAttribute(NHTTP_CONN);
    SSLIOSession sslSession = (SSLIOSession) session.getAttribute(SSL_SESSION);
    this.handler.timeout(conn);
    synchronized (sslSession) {
        if (sslSession.isOutboundDone() && !sslSession.isInboundDone()) {
            // The session failed to terminate cleanly
            sslSession.shutdown();/*from www .  j ava 2 s . c  o  m*/
        }
    }
}

From source file:org.apache.axis2.transport.nhttp.SSLClientIOEventDispatch.java

public void timeout(final IOSession session) {
    DefaultNHttpClientConnection conn = (DefaultNHttpClientConnection) session.getAttribute(NHTTP_CONN);
    SSLIOSession sslSession = (SSLIOSession) session.getAttribute(SSL_SESSION);
    this.handler.timeout(conn);
    synchronized (sslSession) {
        if (sslSession.isOutboundDone() && !sslSession.isInboundDone()) {
            // The session failed to terminate cleanly
            sslSession.shutdown();//from  w  w  w .  j ava 2  s .c o m
        }
    }
}