simplify the connection, rename it to sendConn

This commit is contained in:
Marten Seemann
2020-08-09 19:04:08 +07:00
parent d7c2169c55
commit 89417ab5ca
16 changed files with 175 additions and 246 deletions

View File

@@ -11,7 +11,7 @@ import (
// When receiving packets for such a session, we need to retransmit the packet containing the CONNECTION_CLOSE frame,
// with an exponential backoff.
type closedLocalSession struct {
conn connection
conn sendConn
connClosePacket []byte
closeOnce sync.Once
@@ -29,7 +29,7 @@ var _ packetHandler = &closedLocalSession{}
// newClosedLocalSession creates a new closedLocalSession and runs it.
func newClosedLocalSession(
conn connection,
conn sendConn,
connClosePacket []byte,
perspective protocol.Perspective,
logger utils.Logger,