tcpproxy: increase buffer size to 16K (#9548)
This commit is contained in:
parent
ea629a175e
commit
5628f765fe
1 changed files with 3 additions and 2 deletions
|
@ -59,11 +59,12 @@ func (p *TCPProxy) Get(host string) *TCPServer {
|
||||||
// and open a connection to the passthrough server.
|
// and open a connection to the passthrough server.
|
||||||
func (p *TCPProxy) Handle(conn net.Conn) {
|
func (p *TCPProxy) Handle(conn net.Conn) {
|
||||||
defer conn.Close()
|
defer conn.Close()
|
||||||
data := make([]byte, 4096)
|
// See: https://www.ibm.com/docs/en/ztpf/1.1.0.15?topic=sessions-ssl-record-format
|
||||||
|
data := make([]byte, 16384)
|
||||||
|
|
||||||
length, err := conn.Read(data)
|
length, err := conn.Read(data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
klog.V(4).ErrorS(err, "Error reading the first 4k of the connection")
|
klog.V(4).ErrorS(err, "Error reading data from the connection")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue