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

Camel-SMPP: Use timeout when creating socket connection

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.19.5, 2.20.3, 2.21.1, 2.22.0
    • camel-smpp
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment