0

I'm running into a bug in Ion that koush (the lead dev) thinks may be related to CloudFlare's use of SNI. The bug was reported here: https://github.com/koush/ion/issues/559

I'm looking for a workaround that can deal with CloudFlare Free SSL (Android's HttpClient also fails; though I'm not sure if it is for the same reason).

Ideally, I'd like to just use a workaround working with Ion, but if you know of another library or method to send and receive data over a CloudFlare Free SSL connection I'll gladly use it instead!

So, do you know of any workarounds to this bug?

4

1 回答 1

1

Application.onCreate您可以通过在您的方法中添加以下内容来禁用导致问题的中间件。

 Ion.getDefault(getContext()).getConscryptMiddleware().enable(false);

该错误仅存在于 Google Play Services conscrypt 中。一旦 GPS 更新,稍后删除该行。

禁用 conscrypt 的缺点是它还会禁用旧平台上的 SPDY 支持,而且它也是一个更新、更安全、更新的 SSL 堆栈。

资源

于 2015-07-06T16:49:31.707 回答