Reusing SSL Sessions in Android with HttpClient?

It's fixed. It's now using sessions and consuming minute amounts of data `registry. Register(new Scheme("http", PlainSocketFactory.

GetSocketFactory(), 80)) Removing that line fixes it, despite httpclient never even using http/port 80. Why this works I have no idea.

It's fixed. It's now using sessions and consuming minute amounts of data. `registry.

Register(new Scheme("http", PlainSocketFactory. GetSocketFactory(), 80));' Removing that line fixes it, despite httpclient never even using http/port 80. Why this works I have no idea.

Nb: I also needed to switch to the Simple connecter - Jetty doesn't seem to work with sessions. – user705142 Jul 1 at 2:58.

I'm having a lot of difficulty resuming an SSL session on Android using HttpClient. I'm polling a server every 90 seconds (it's for industrial devices with one function only), so I need to resume the session or else data use skyrockets from a few kB an hour up to 150-200kB, which is unsustainable. The server is embedded Jetty in Restlet, and supports resumption of SSL sessions when I test it using OpenSSL as far as I can tell.

I'm reusing my HttpClient object, so it's not that. Android has a specific SSLCertificateSocketFactory which I've also tried and it also doesn't seem to work. Is there something I'm completely missing here?

I had presumed HttpClient would do this automatically, I'm not sure what I'm doing wrong, and no-one on the internet seems to be coming up against a similar problem. Then just I reuse the HttpClient object using a simple HttpGet and Basic authorization. What am I doing wrong here!?

Anyone, please help!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions