Explorar el Código

2k buffer should be enough

Darien Raymond hace 8 años
padre
commit
443fd7c9a5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      transport/internet/kcp/io.go

+ 1 - 1
transport/internet/kcp/io.go

@@ -51,7 +51,7 @@ type KCPPacketWriter struct {
 	Security cipher.AEAD
 	Writer   io.Writer
 
-	buffer [32 * 1024]byte
+	buffer [2048]byte
 }
 
 func (w *KCPPacketWriter) Overhead() int {