[ 
https://issues.apache.org/jira/browse/CAMEL-11177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15976950#comment-15976950
 ] 

ASF GitHub Bot commented on CAMEL-11177:
----------------------------------------

GitHub user jamesnetherton opened a pull request:

    https://github.com/apache/camel/pull/1647

    CAMEL-11177: CoAP component starts redundant server instance

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jamesnetherton/camel CAMEL-11177

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/1647.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1647
    
----
commit 0ff5785a9e6034d8452cb1021b054211955ccebb
Author: James Netherton <[email protected]>
Date:   2017-04-20T15:31:54Z

    CAMEL-11177: CoAP component starts redundant server instance

----


> CoAP component starts redundant server instance
> -----------------------------------------------
>
>                 Key: CAMEL-11177
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11177
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-coap
>    Affects Versions: 2.18.3, 2.19.0
>            Reporter: James Netherton
>
> If I configure a simple camel-coap consumer endpoint like:
> {code}
> from("coap://localhost:8080/foo")
> {code}
> Logging reveals that two server instances were started:
> {code}
> [org.eclipse.californium.core.network.CoapEndpoint] (pool-3-thread-1) 
> Stopping endpoint at address 0.0.0.0/0.0.0.0:52697
> [org.eclipse.californium.core.network.CoapEndpoint] (pool-3-thread-1) 
> Stopping endpoint at address 0.0.0.0/0.0.0.0:8080 
> {code}
> [This|https://github.com/apache/camel/blob/master/components/camel-coap/src/main/java/org/apache/camel/coap/CoAPComponent.java#L148-L153]
>  appears to be the logic that causes the behaviour. 
> Do we need it? It seems to be a duplicate of what already happens in 
> {{createConsumer()}}. Also, the creation of a default server can easily be 
> done in the {{createServer()}} method, I don't think we need it in 
> {{doStart()}}.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to