带有不完整 TLS 握手的 iOS ECONNRESET - 生成 errSSLClosedNoNotify

标签 ios ssl tls1.2

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

[] -[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、同一个应用程序上。

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

知道为什么吗?

最佳答案

要么重启,要么转至Settings -> General -> Reset -> Reset All Settings在 iOS 14.4 和 iPhone 8 上为我解决了这个问题

关于带有不完整 TLS 握手的 iOS ECONNRESET - 生成 errSSLClosedNoNotify,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61348479/

相关文章:

ios - 获取 subview 的所有 subview

ssl - IBM MobileFirst Platform 中的证书固定

java - 如何将 ssl 通配符证书从 Apache 导入到 Tomcat

用于 TLS 支持测试的 .Net 核心 API

delphi - 在 WinHTTP 中,应使用哪些设置来通过 Common Criteria TLS_EXT1.1 测试

ios - iPhone6(无显示缩放模式)UIMenuController 被截断

ios - 各种类似的 simd_ 函数彼此有何不同?

c# - 使用 c# 和 TLSv1.2 连接到 LDAP

ios - swift 3 调用 AFNetworking 的 post() 时函数参数的一个非常奇怪的问题

ssl - asio ssl 内容不可读