reset write buffer
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jake Hillion 2021-01-23 20:46:06 +00:00
parent 3b7eacce39
commit 3291eb4a6c
2 changed files with 7 additions and 7 deletions

View File

@ -112,9 +112,9 @@ func (f *InitiatedFlow) Reconnect() error {
return err
}
if err := conn.SetWriteBuffer(20); err != nil {
return err
}
//if err := conn.SetWriteBuffer(20); err != nil {
// return err
//}
f.conn = conn
f.isAlive = true
@ -209,7 +209,7 @@ func (f *Flow) consumeMarshalled() {
}
func (f *Flow) produceMarshalled() {
buf := bufio.NewReaderSize(f.conn, 100000)
buf := bufio.NewReader(f.conn)
for {
t1 := time.Now()

View File

@ -24,9 +24,9 @@ func NewListener(p *proxy.Proxy, local string, v func() proxy.MacVerifier, g fun
panic(err)
}
if err := conn.SetWriteBuffer(20); err != nil {
panic(err)
}
//if err := conn.SetWriteBuffer(20); err != nil {
// panic(err)
//}
f := NewFlowConn(conn)