Skip to content

Commit 4fad403

Browse files
authored
Remove support for Go 1.8
1 parent f0643a3 commit 4fad403

File tree

6 files changed

+13
-91
lines changed

6 files changed

+13
-91
lines changed

client.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,3 +384,10 @@ func (d *Dialer) DialContext(ctx context.Context, urlStr string, requestHeader h
384384
netConn = nil // to avoid close in defer.
385385
return conn, resp, nil
386386
}
387+
388+
func cloneTLSConfig(cfg *tls.Config) *tls.Config {
389+
if cfg == nil {
390+
return &tls.Config{}
391+
}
392+
return cfg.Clone()
393+
}

client_clone.go

Lines changed: 0 additions & 17 deletions
This file was deleted.

client_clone_legacy.go

Lines changed: 0 additions & 39 deletions
This file was deleted.

conn.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,12 @@ func (c *Conn) write(frameType int, deadline time.Time, buf0, buf1 []byte) error
402402
return nil
403403
}
404404

405+
func (c *Conn) writeBufs(bufs ...[]byte) error {
406+
b := net.Buffers(bufs)
407+
_, err := b.WriteTo(c.conn)
408+
return err
409+
}
410+
405411
// WriteControl writes a control message with the given deadline. The allowed
406412
// message types are CloseMessage, PingMessage and PongMessage.
407413
func (c *Conn) WriteControl(messageType int, data []byte, deadline time.Time) error {

conn_write.go

Lines changed: 0 additions & 16 deletions
This file was deleted.

conn_write_legacy.go

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)