Bläddra i källkod

pkg/proxy: Bump the maximum size of a UDP packet.

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
Erik Hollensbe 10 år sedan
förälder
incheckning
5a73be8e9f
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      pkg/proxy/udp_proxy.go

+ 1 - 1
pkg/proxy/udp_proxy.go

@@ -13,7 +13,7 @@ import (
 
 
 const (
 const (
 	UDPConnTrackTimeout = 90 * time.Second
 	UDPConnTrackTimeout = 90 * time.Second
-	UDPBufSize          = 2048
+	UDPBufSize          = 65507
 )
 )
 
 
 // A net.Addr where the IP is split into two fields so you can use it as a key
 // A net.Addr where the IP is split into two fields so you can use it as a key