Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11177

CoAP component starts redundant server instance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.18.3, 2.19.0
    • 2.19.0
    • camel-coap
    • None
    • Unknown

    Description

      If I configure a simple camel-coap consumer endpoint like:

      from("coap://localhost:8080/foo")
      

      Logging reveals that two server instances were started:

      [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 
      

      This 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().

      Attachments

        Issue Links

          Activity

            People

              acosentino Andrea Cosentino
              jamesnetherton James Netherton
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: