LoginSignup
7
7

More than 5 years have passed since last update.

OkHttpとSSL通信を組み合わせるとSIGSEGVで落ちる

Last updated at Posted at 2014-05-02

OkHttp changes the global SSL context, breaks other HTTP clients

Workaround

  • 全部OkHttpClientで書き換える → 外部ライブラリには不可能
  • URL.setURLStreamHandlerFactory(new OkHttpClient()); → Apache Http Clientには効かない
  • OkHttpClientを使う前にこのコードを追加する
  • OkHttpを外す

結局手間を考えて最後のオプションを採りました(´・ω・`)

追記

AOSPにバグ登録されてた

7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7