Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSL session not being reused in Android WebView

Tags:

I have been trying out SSL session reuse on Android webview. We noticed that the ssl session is being re-used if the consecutive requests happen within ~5 seconds. In the server(nginx) we have set the ssl_session_timeout 10m meaning, 10 minutes and keep-alive is for 30 seconds.

Seems like the Android webview control is destroying session-id after 5 seconds.

How can we reuse the ssl session for at least 30 seconds?

like image 423
Sudarshan Bhat Avatar asked Jun 30 '12 04:06

Sudarshan Bhat


1 Answers

If using Httpclient, you may try it on Desktop platform.

1, Write a Java code on PC with Httpclient,
2, Try it with browser.

If it shows the same results, SSL session breaks in 5 secs, that maybe some troubles in Server side.
If not, that maybe something wrong with client side.

Good luck.

like image 148
meadlai Avatar answered Oct 24 '22 11:10

meadlai