Reusing SSL Sessions in Android with HttpClient

后端 未结 1 450
失恋的感觉
失恋的感觉 2020-12-02 17:53

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 fu

相关标签:
1条回答
  • 2020-12-02 18:23

    It's fixed. It is 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.

    0 讨论(0)
提交回复
热议问题