diff --git a/connection.go b/connection.go index c942cf1f..946d17f2 100644 --- a/connection.go +++ b/connection.go @@ -1739,7 +1739,7 @@ func (s *connection) sendPackets() error { var sentPacket bool // only used in for packets sent in send mode SendAny for { sendMode := s.sentPacketHandler.SendMode() - if sendMode == ackhandler.SendAny && s.handshakeComplete && !s.sentPacketHandler.HasPacingBudget() { + if sendMode == ackhandler.SendAny && !s.sentPacketHandler.HasPacingBudget() { deadline := s.sentPacketHandler.TimeUntilSend() if deadline.IsZero() { deadline = deadlineSendImmediately diff --git a/connection_test.go b/connection_test.go index d66b33e3..0a2ab929 100644 --- a/connection_test.go +++ b/connection_test.go @@ -1771,6 +1771,7 @@ var _ = Describe("Connection", func() { sph.EXPECT().GetLossDetectionTimeout().AnyTimes() sph.EXPECT().SendMode().Return(ackhandler.SendAny).AnyTimes() sph.EXPECT().TimeUntilSend().Return(time.Now()).AnyTimes() + sph.EXPECT().HasPacingBudget().Return(true).AnyTimes() gomock.InOrder( sph.EXPECT().SentPacket(gomock.Any()).Do(func(p *ackhandler.Packet) { Expect(p.EncryptionLevel).To(Equal(protocol.EncryptionInitial))