无多路复用版本

This commit is contained in:
wenyifan
2022-09-05 14:21:33 +08:00
parent 1c49851d13
commit c4c6f1c4ff
5 changed files with 86 additions and 16 deletions

View File

@ -23,15 +23,6 @@ func TestName(t *testing.T) {
}
func TestName2(t *testing.T) {
dial, err := tls.DialWithDialer(&net.Dialer{
Timeout: time.Second * 5,
}, "tcp", "evan.run:443", &tls.Config{
ServerName: "evan.run",
})
err = dial.Handshake()
if err != nil {
fmt.Println(err)
}
time.Sleep(time.Minute)
v := "12345678"
fmt.Println(v[2:2])
}