forked from quic-go/quic-go
rename MaxReceivePacketSize to MaxPacketBufferSize
We use the same buffer size for sending and receiving packets.
This commit is contained in:
@@ -169,7 +169,7 @@ var _ = Describe("QUIC Proxy", func() {
|
||||
defer GinkgoRecover()
|
||||
defer close(stoppedReading)
|
||||
for {
|
||||
buf := make([]byte, protocol.MaxReceivePacketSize)
|
||||
buf := make([]byte, protocol.MaxPacketBufferSize)
|
||||
// the ReadFromUDP will error as soon as the UDP conn is closed
|
||||
n, addr, err2 := serverConn.ReadFromUDP(buf)
|
||||
if err2 != nil {
|
||||
@@ -221,7 +221,7 @@ var _ = Describe("QUIC Proxy", func() {
|
||||
// receive the packets echoed by the server on client side
|
||||
go func() {
|
||||
for {
|
||||
buf := make([]byte, protocol.MaxReceivePacketSize)
|
||||
buf := make([]byte, protocol.MaxPacketBufferSize)
|
||||
// the ReadFromUDP will error as soon as the UDP conn is closed
|
||||
n, _, err2 := clientConn.ReadFromUDP(buf)
|
||||
if err2 != nil {
|
||||
@@ -280,7 +280,7 @@ var _ = Describe("QUIC Proxy", func() {
|
||||
// receive the packets echoed by the server on client side
|
||||
go func() {
|
||||
for {
|
||||
buf := make([]byte, protocol.MaxReceivePacketSize)
|
||||
buf := make([]byte, protocol.MaxPacketBufferSize)
|
||||
// the ReadFromUDP will error as soon as the UDP conn is closed
|
||||
n, _, err2 := clientConn.ReadFromUDP(buf)
|
||||
if err2 != nil {
|
||||
@@ -424,7 +424,7 @@ var _ = Describe("QUIC Proxy", func() {
|
||||
// receive the packets echoed by the server on client side
|
||||
go func() {
|
||||
for {
|
||||
buf := make([]byte, protocol.MaxReceivePacketSize)
|
||||
buf := make([]byte, protocol.MaxPacketBufferSize)
|
||||
// the ReadFromUDP will error as soon as the UDP conn is closed
|
||||
n, _, err2 := clientConn.ReadFromUDP(buf)
|
||||
if err2 != nil {
|
||||
|
||||
Reference in New Issue
Block a user