带有不完整 TLS 握手的 iOS ECONNRESET - 生成 errSSLClosedNoNotify [英] iOS ECONNRESET with incomplete TLS handshake - generating errSSLClosedNoNotify

查看:48
本文介绍了带有不完整 TLS 握手的 iOS ECONNRESET - 生成 errSSLClosedNoNotify的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们尝试使用蜂窝网络 (4G) 从运行在 iOS 13 上的 iOS 应用程序访问一个 API 时,它显示间歇性错误:

When we try to access one API from the iOS application running on iOS 13 using cellular (4G), it shows intermittent error:

[] -[NWConcrete_nw_address_endpoint initWithAddress:overridePort:] Fixing endpoint address with non-zero sin_zero field
[] tcp_input [C4.1:3] flags=[R.] seq=4011135460, ack=1357945681, win=0 state=ESTABLISHED rcv_nxt=4011135460, snd_una=1357945681
Connection 4: received failure notification
Connection 4: received ECONNRESET with incomplete TLS handshake - generating errSSLClosedNoNotify
Connection 4: failed to connect 3:-9816, reason -1
Connection 4: encountered error(3:-9816)
Task <50BECA08-D337-4DA7-A57C-D04AAAE2367C>.<0> HTTP load failed, 0/0 bytes (error code: -1200 [3:-9816])
NSURLConnection finished with error - code -1200

但是,当连接到 wifi 时,上述错误永远不会发生在同一个 iPhone、同一个应用程序上.

But, the above error never happens on the same iPhone, same app when connecting to wifi.

有趣的是,当我们使用同一个手机连接同一个 wifi,但使用 safari 访问同一个 API 时,它没有问题.

Interestingly, when we use the same phone connecting to the same wifi, but using safari to hit the same API, it got no issue.

知道为什么吗?

推荐答案

要么重启要么去Settings ->一般 ->重置 ->Reset All Settings 在 iOS 14.4 和 iPhone 8 上为我解决了

Either restarting or go to Settings -> General -> Reset -> Reset All Settings solved it for me on iOS 14.4 and iPhone 8

这篇关于带有不完整 TLS 握手的 iOS ECONNRESET - 生成 errSSLClosedNoNotify的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆