iOS 12 BoringSSL debug 记录(不全)

最近观察到iOS12下不停的报各种网络相关的错误

BoringSSL 
nw_protocol_boringssl_input_finished
nw_protocol_boringssl_get_output_frames
nw_protocol_boringssl_input_finished
boringssl_session_handshake_error_print
Peer disconnected during the middle of a handshake. Sending errSSLClosedNoNotify(-9816) alert
NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9860)
TIC Read Status 
TIC TCP Conn Failed

怎么调试
1.打开网络调试开关

setenv("CFNETWORK_DIAGNOSTICS", "3", 1);//值从0-3,0代表off

2.查看信息
搜索BoringSSL,找到log
搜索log中类似于[3812:613906] 中的线程号613906,向上搜索,找到发起链接的log。
打开log中的request url
在shell中使用

 nscurl --ats-diagnostics --verbose https://***

进行判断。

  1. 结论
    太多了,看不清。。。
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容