ios - 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
解决方案
推荐阅读
- aws-lambda - 使用 Node.js Lambda 通过 API Gateway 查询多个参数
- scala - 避免递归 MTL 类的发散隐式扩展
- python - 每日奖励帮助,Discord Bot
- android - 如何始终显示在底部?
- linux - 找不到数据库文件“database.s3db”
- python-2.7 - 如何将参数传递给数据流模板以进行管道构建
- php - 带有消息“类 purrweb\heroku\HerokuGeneratorController 不存在”的异常“ReflectionException”
- vba - VBA Cells.Replace 更改整个电子表格
- python - 无法从 Django 视图接收到模板的 json 响应?
- android - 引导接收器广播 adb 命令在 Android Oreo 8.1.0 Go 版设备中不起作用?