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

Add a timeout on WebSocketProducer sendMessages method

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.17.2
    • Fix Version/s: 2.18.0
    • Component/s: camel-websocket
    • Labels:
      None
    • Environment:

      Ubuntu 14.04, full java project using camel-websockets

    • Estimated Complexity:
      Unknown

      Description

      We are encountering a problem with websocket component when our clients using web browsers are brutally loosing connection (closing laptop most of time).

      When we are sending updates from server to all clients, the WebSocketProducer iterate over all opened sockets and when it reaches the broken socket, it is just waiting for the idleTimeout to happen.

      At this step, the others clients are not able to interact with the server anymore cause the websocket producer is busy waiting on the broken socket and can't send messages to other clients.

      I'm looking for a work-around or something... maybe the ability to set a timeout on the client handshake when sending... I'm not an expert in network protocols.

      Thanks.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              Sufod Jeremy
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: