我有一个在 iOS 上运行的简单程序 HelloWorld。相同的代码已经运行了很长时间。最近,我注意到当程序在连接到 Macbook 上的 Xcode 9 的 ipad 上运行时出现以下 BoringSSL 错误。当我在模拟器中运行程序时,我没有看到这个错误。iOS是11.2。Xcode 是 9.2。
我的代码没有提到 BoringSSL。但是,它确实使用 NSMutableURLRequest 对服务器进行 https 调用。通话工作正常,除了 BoringSSL 消息外,一切似乎都工作正常。
有没有办法可以调试为什么会出现消息?HellowWorld[466:85961],这两个数字是什么意思?
该消息是什么意思以及如何避免它?
2017-12-13 15:41:13.486047-0500 HellowWorld[466:85961] [BoringSSL] Function boringssl_session_errorlog: line 2871 [boringssl_session_read] SSL_ERROR_ZERO_RETURN(6): operation failed because the connection was cleanly shut down with a close_notify alert
2017-12-13 15:41:13.486363-0500 HellowWorld[466:85961] [BoringSSL] Function boringssl_session_errorlog: line 2871 [boringssl_session_read] SSL_ERROR_ZERO_RETURN(6): operation failed because the connection was cleanly shut down with a close_notify alert