Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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.