R
Rick Genter
I'm having a problem with an SSL socket connection taking a long time
to complete. I am using J2SE 1.4.2 and using the JSSE package included
therein. My code is lifted straight from the tutorials on how to use
JSSE. The problem I am facing boils down to the fact that the line of
code:
Socket socket = factory.createSocket(host, port);
typically takes 4.5 seconds to execute. This is between two machines
communicating over the Internet with a typical ping time of 30
milliseconds. Other (non-SSL) socket connections in the same
application between the same two machines are taking < 100
milliseconds. Occasionally the above line of code takes much LONGER to
execute; I've seen it take as long as 23 seconds.
Can anyone point me in a direction to try to improve the performance
of my application in this regard? Thanks.
Rick
to complete. I am using J2SE 1.4.2 and using the JSSE package included
therein. My code is lifted straight from the tutorials on how to use
JSSE. The problem I am facing boils down to the fact that the line of
code:
Socket socket = factory.createSocket(host, port);
typically takes 4.5 seconds to execute. This is between two machines
communicating over the Internet with a typical ping time of 30
milliseconds. Other (non-SSL) socket connections in the same
application between the same two machines are taking < 100
milliseconds. Occasionally the above line of code takes much LONGER to
execute; I've seen it take as long as 23 seconds.
Can anyone point me in a direction to try to improve the performance
of my application in this regard? Thanks.
Rick