| | |
| | | import java.util.concurrent.locks.Lock; |
| | | import java.util.concurrent.locks.ReentrantLock; |
| | | |
| | | import javax.net.ssl.SSLException; |
| | | |
| | | import org.opends.messages.Message; |
| | | import org.opends.messages.MessageBuilder; |
| | | import org.opends.server.api.ClientConnection; |
| | |
| | | |
| | | if (connectionHandler.useSSL()) |
| | | { |
| | | enableSSL(connectionHandler.getTLSByteChannel(this, |
| | | timeoutClientChannel)); |
| | | enableSSL(connectionHandler.getTLSByteChannel(timeoutClientChannel)); |
| | | } |
| | | |
| | | connectionID = DirectoryServer.newConnectionAccepted(this); |
| | |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | } |
| | | |
| | | if (asn1Reader.hasRemainingData()) |
| | | if (asn1Reader.hasRemainingData() || (e instanceof SSLException)) |
| | | { |
| | | // The connection failed, but there was an unread partial message so |
| | | // interpret this as an IO error. |
| | |
| | | try |
| | | { |
| | | TLSByteChannel tlsByteChannel = |
| | | connectionHandler.getTLSByteChannel(this, timeoutClientChannel); |
| | | connectionHandler.getTLSByteChannel(timeoutClientChannel); |
| | | setTLSPendingProvider(tlsByteChannel); |
| | | } |
| | | catch (DirectoryException de) |