implement receiving of Public Resets for the client

When a Public Reset is received, the client validates if it was sent
from the correct remote address and if the connection ID matches. When a
valid Public Reset is received, the connection is closed immediately.
This commit is contained in:
Marten Seemann
2017-07-11 20:12:12 +07:00
parent c80bd6ff2c
commit 0867352b26
4 changed files with 65 additions and 3 deletions

View File

@@ -20,6 +20,7 @@ type packetHandler interface {
Session
handlePacket(*receivedPacket)
run() error
closeRemote(error)
}
// A Listener of QUIC