Ai
1 Star 1 Fork 0

api-go/gorilla-websocket

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
trace.go 396 Bytes
一键复制 编辑 原始数据 按行查看 历史
SALLEYRON Julien 提交于 2018-08-25 04:45 +08:00 . Add context in the Dialer
// +build go1.8
package websocket
import (
"crypto/tls"
"net/http/httptrace"
)
func doHandshakeWithTrace(trace *httptrace.ClientTrace, tlsConn *tls.Conn, cfg *tls.Config) error {
if trace.TLSHandshakeStart != nil {
trace.TLSHandshakeStart()
}
err := doHandshake(tlsConn, cfg)
if trace.TLSHandshakeDone != nil {
trace.TLSHandshakeDone(tlsConn.ConnectionState(), err)
}
return err
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/netscript/gorilla-websocket.git
git@gitee.com:netscript/gorilla-websocket.git
netscript
gorilla-websocket
gorilla-websocket
v1.4.0

搜索帮助