forked from quic-go/quic-go
use the peer's max_packet_size when packing packets
This commit is contained in:
@@ -1361,11 +1361,13 @@ var _ = Describe("Session", func() {
|
||||
StreamFlowControlWindow: 0x5000,
|
||||
ConnectionFlowControlWindow: 0x5000,
|
||||
OmitConnectionID: true,
|
||||
MaxPacketSize: 0x42,
|
||||
}
|
||||
streamManager.EXPECT().UpdateLimits(¶ms)
|
||||
paramsChan <- params
|
||||
Eventually(func() *handshake.TransportParameters { return sess.peerParams }).Should(Equal(¶ms))
|
||||
Eventually(func() bool { return sess.packer.omitConnectionID }).Should(BeTrue())
|
||||
Eventually(func() protocol.ByteCount { return sess.packer.maxPacketSize }).Should(Equal(protocol.ByteCount(0x42)))
|
||||
// make the go routine return
|
||||
streamManager.EXPECT().CloseWithError(gomock.Any())
|
||||
Expect(sess.Close(nil)).To(Succeed())
|
||||
|
||||
Reference in New Issue
Block a user