forked from quic-go/quic-go
always allow sending of IETF QUIC Version Negotiation Packets
When receiving a packet with an IETF QUIC Header using an unsupported version, we should send a IETF QUIC Version Negotiation Packet, even if none of the supported versions is IETF QUIC.
This commit is contained in:
@@ -41,22 +41,6 @@ var _ = Describe("Stateless TLS handling", func() {
|
||||
return hdr
|
||||
}
|
||||
|
||||
It("sends a Version Negotiation Packet if it doesn't support the version", func() {
|
||||
server.HandleInitial(&receivedPacket{
|
||||
header: &wire.Header{
|
||||
DestConnectionID: protocol.ConnectionID{1, 2, 3, 4, 5, 6, 7, 8},
|
||||
SrcConnectionID: protocol.ConnectionID{1, 2, 3, 4, 5, 6, 7, 8},
|
||||
PacketNumberLen: protocol.PacketNumberLen1,
|
||||
Version: 0x1337,
|
||||
},
|
||||
data: bytes.Repeat([]byte{0}, protocol.MinInitialPacketSize),
|
||||
})
|
||||
Expect(conn.dataWritten.Len()).ToNot(BeZero())
|
||||
hdr := parseHeader(conn.dataWritten.Bytes())
|
||||
Expect(hdr.IsVersionNegotiation).To(BeTrue())
|
||||
Expect(sessionChan).ToNot(Receive())
|
||||
})
|
||||
|
||||
It("drops too small packets", func() {
|
||||
server.HandleInitial(&receivedPacket{
|
||||
header: &wire.Header{},
|
||||
|
||||
Reference in New Issue
Block a user