You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2013/10/02 16:46:41 UTC

[jira] [Resolved] (CAMEL-6818) Netty - SSLContext should be initialized once and reused - Also race condition in current code

     [ https://issues.apache.org/jira/browse/CAMEL-6818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-6818.
--------------------------------

    Resolution: Fixed

> Netty - SSLContext should be initialized once and reused - Also race condition in current code
> ----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-6818
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6818
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-netty
>    Affects Versions: 2.12.1
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.12.2, 2.13.0
>
>
> The SSLContext is created per pipeline which is not as efficient as creating it once.
> Also there is a race condition in the current code that can lead to:
> {code}
> 14:04:27,328 | WARN | ttyServerTCPBoss | netty | 246 - org.jboss.netty - 3.6.6.Final | [org.jboss.netty.channel.socket.nio.AbstractNioSelector] Failed to initialize an accepted socket.
> java.lang.IllegalStateException: SSLContextImpl is not initialized
> at sun.security.ssl.SSLContextImpl.engineCreateSSLEngine(SSLContextImpl.java:197)[:1.7.0_21]
> at javax.net.ssl.SSLContext.createSSLEngine(SSLContext.java:330)
> at org.apache.camel.component.netty.ssl.SSLEngineFactory.createServerSSLEngine(SSLEngineFactory.java:104)
> at org.apache.camel.component.netty.http.HttpServerPipelineFactory.configureServerSSLOnDemand(HttpServerPipelineFactory.java:153)
> at org.apache.camel.component.netty.http.HttpServerPipelineFactory.getPipeline(HttpServerPipelineFactory.java:77)
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)