无多路复用版本
This commit is contained in:
@ -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])
|
||||
}
|
||||
|
Reference in New Issue
Block a user