This commit is contained in:
parent
3b7eacce39
commit
3291eb4a6c
@ -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()
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user