var errTransportParametersRequired = errors.New("transport parameters required")
-func runTestQUICConnection(ctx context.Context, a, b *testQUICConn, onHandleCryptoData func()) error {
+func runTestQUICConnection(ctx context.Context, cli, srv *testQUICConn, onHandleCryptoData func()) error {
+ a, b := cli, srv
for _, c := range []*testQUICConn{a, b} {
if !c.conn.conn.quic.started {
if err := c.conn.Start(ctx); err != nil {
return errTransportParametersRequired
case QUICHandshakeDone:
a.complete = true
+ if a == srv {
+ if err := srv.conn.SendSessionTicket(false); err != nil {
+ return err
+ }
+ }
}
if e.Kind != QUICNoEvent {
idleCount = 0