Skip to content

Commit 732b4bc

Browse files
committed
quic: report initial TLS errors
Pass errors from QUICConn.Start and the initial flight of TLS events up to the caller. For golang/go#58547 Change-Id: I3a32986bc19a2dd9bf43cd08e3fdd1fa93251a0c Reviewed-on: https://go-review.googlesource.com/c/net/+/529737 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Jonathan Amsterdam <jba@google.com>
1 parent 8add2e1 commit 732b4bc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/quic/conn.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func newConn(now time.Time, side connSide, initialConnID []byte, peerAddr netip.
106106
c.lifetimeInit()
107107

108108
// TODO: initial_source_connection_id, retry_source_connection_id
109-
c.startTLS(now, initialConnID, transportParameters{
109+
if err := c.startTLS(now, initialConnID, transportParameters{
110110
initialSrcConnID: c.connIDState.srcConnID(),
111111
ackDelayExponent: ackDelayExponent,
112112
maxUDPPayloadSize: maxUDPPayloadSize,
@@ -119,7 +119,9 @@ func newConn(now time.Time, side connSide, initialConnID []byte, peerAddr netip.
119119
initialMaxStreamsBidi: c.streams.remoteLimit[bidiStream].max,
120120
initialMaxStreamsUni: c.streams.remoteLimit[uniStream].max,
121121
activeConnIDLimit: activeConnIDLimit,
122-
})
122+
}); err != nil {
123+
return nil, err
124+
}
123125

124126
go c.loop(now)
125127
return c, nil

0 commit comments

Comments
 (0)