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. 结论
    太多了,看不清。。。

你可能感兴趣的:(iOS 12 BoringSSL debug 记录(不全))