带有不完整 TLS 握手的 iOS ECONNRESET

编程入门 行业动态 更新时间:2024-10-25 05:19:06
本文介绍了带有不完整 TLS 握手的 iOS ECONNRESET - 生成 errSSLClosedNoNotify的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

当我们尝试使用蜂窝网络 (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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-30 05:24:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1390216.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不完整   TLS   ECONNRESET   iOS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!