queue undecryptable packets for later decryption & possibly send PRST

fixes #38, fixes #69, fixes #73
This commit is contained in:
Lucas Clemente
2016-05-12 15:59:55 +02:00
parent 0df44e46e5
commit c7126137d1
7 changed files with 87 additions and 40 deletions

View File

@@ -1,7 +1,6 @@
package quic
import (
"bytes"
"net"
"time"
@@ -19,7 +18,7 @@ type mockSession struct {
packetCount int
}
func (s *mockSession) HandlePacket(addr interface{}, publicHeader *PublicHeader, r *bytes.Reader) {
func (s *mockSession) HandlePacket(addr interface{}, publicHeader *PublicHeader, data []byte) {
s.packetCount++
}