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

Camel-SMPP: Use timeout when creating socket connection

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.19.5, 2.20.3, 2.21.1, 2.22.0
    • Component/s: camel-smpp
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Camel-SMPP is using
      javax.net.SocketFactory#createSocket(String host, int port) which "creates a socket and connects it to the specified port number at the specified address" according to the javadoc.

      As SocketFactory is an abstract class, the behavior of createSocket(String host, int port) depends on the concrete implementation in use, but at least the default implementation of Oracle Java 8 Update 152 connects without using a timeout.

      As blocking operations without timeouts should be avoided Camel-SMPP should use a timeout when connecting the socket.

        Attachments

          Activity

            People

            • Assignee:
              pascalschumacher Pascal Schumacher
              Reporter:
              pascalschumacher Pascal Schumacher
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: