Sfoglia il codice sorgente

2k buffer should be enough

Darien Raymond 8 anni fa
parent
commit
443fd7c9a5
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 {