mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-05 21:27:35 +03:00
send a HANDSHAKE_DONE frame after handshake completion (as a server)
This commit is contained in:
parent
556e5c5559
commit
08ec2f69fc
2 changed files with 7 additions and 5 deletions
|
@ -1239,10 +1239,13 @@ var _ = Describe("Session", func() {
|
|||
Eventually(sess.Context().Done()).Should(BeClosed())
|
||||
})
|
||||
|
||||
It("sends a 1-RTT packet when the handshake completes", func() {
|
||||
It("sends a HANDSHAKE_DONE frame when the handshake completes", func() {
|
||||
done := make(chan struct{})
|
||||
sessionRunner.EXPECT().Retire(clientDestConnID)
|
||||
packer.EXPECT().PackPacket().DoAndReturn(func() (*packedPacket, error) {
|
||||
frames, _ := sess.framer.AppendControlFrames(nil, protocol.MaxByteCount)
|
||||
Expect(frames).ToNot(BeEmpty())
|
||||
Expect(frames[0].Frame).To(BeEquivalentTo(&wire.HandshakeDoneFrame{}))
|
||||
defer close(done)
|
||||
return &packedPacket{
|
||||
header: &wire.ExtendedHeader{},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue