首页 > 解决方案 > Wifi 连接速度慢的 AWS S3 文件的下载停止

问题描述

我有一个应用程序,我正在尝试下载 AWS S3 和 5mb 上的文件。我对蜂窝网络没有​​任何问题,但 wifi 速度相对较慢(大约 120 kb/s 不那么慢),下载停止了大约 10%。我搜索了很多,并在 info.plist 上做了一些主题化,但没有帮助。下面你可以看到我在 info.plist 和下载过程中使用的日志。

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSExceptionDomains</key>
    <dict>
        <key>amazonaws.com</key>
        <dict>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSExceptionRequiresForwardSecrecy</key>
            <true/>
            <key>NSExceptionMinimumTLSVersion</key>
            <string>TLSv1.2</string>
            <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
            <false/>
            <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
            <true/>
            <key>NSThirdPartyExceptionMinimumTLSVersion</key>
            <string>TLSv1.2</string>
            <key>NSRequiresCertificateTransparency</key>
            <false/>
        </dict>
    </dict>
</dict>

日志输出:

2019-06-04 22:17:36.828347+0300 My App [12042:57908] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C3.1:2][0x7fdd3c72a8e0] get output frames failed, state 8196

标签: iosamazon-s3

解决方案


推荐阅读