Hi folks.

Did anyone ever suceeded in setting timeout period of client SSL
connection???

I am using the following snippet to initiate a SSL/TLS client
connection, but found that the timeout is static at 190 seconds which
is tooooooo.. LONG!!!

SSLContext sctx=SSLContext.getInstance("TLS");
sctx.init(null,trustManagers,new SecureRandom());
sctx.getClientSessionContext().setSessionTimeout(8);
(SSLSocket)sctx.getSocketFactory().createSocket(
    sa.getAddress(),4000);

Anyone knows how-to, please shed some light.

THANKS! THANKS!! THANKS!!!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to