Skip to content

Commit 909a818

Browse files
VolatusJames Strong
authored andcommitted
tcpproxy: increase buffer size to 16K (#9548)
1 parent 4e85acc commit 909a818

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/tcpproxy/tcp.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,12 @@ func (p *TCPProxy) Get(host string) *TCPServer {
5959
// and open a connection to the passthrough server.
6060
func (p *TCPProxy) Handle(conn net.Conn) {
6161
defer conn.Close()
62-
data := make([]byte, 4096)
62+
// See: https://www.ibm.com/docs/en/ztpf/1.1.0.15?topic=sessions-ssl-record-format
63+
data := make([]byte, 16384)
6364

6465
length, err := conn.Read(data)
6566
if err != nil {
66-
klog.V(4).ErrorS(err, "Error reading the first 4k of the connection")
67+
klog.V(4).ErrorS(err, "Error reading data from the connection")
6768
return
6869
}
6970

0 commit comments

Comments
 (0)