Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to set timeout on ssl handshake

843811Dec 22 2009 — edited Dec 22 2009
Hi All,

It seems that sun jsse do not support setting timeout on socket handshake.
Why?

//Java standard api
Socket socket = SocketFactory.createSocket(host,port);

//We expect api
Socket socket = SocketFactory.createSocket(host,port,timeout);

Welcome your comments.
Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 19 2010
Added on Dec 22 2009
3 comments
2,534 views