mirror of https://github.com/v2ray/v2ray-core
use local buffer when fetching input
parent
00a747afe3
commit
bf2d45a83d
|
@ -359,7 +359,7 @@ func (this *Connection) updateTask() {
|
||||||
|
|
||||||
func (this *Connection) FetchInputFrom(conn io.Reader) {
|
func (this *Connection) FetchInputFrom(conn io.Reader) {
|
||||||
go func() {
|
go func() {
|
||||||
payload := alloc.NewBuffer()
|
payload := alloc.NewLocalBuffer(2048)
|
||||||
defer payload.Release()
|
defer payload.Release()
|
||||||
for {
|
for {
|
||||||
payload.Reset()
|
payload.Reset()
|
||||||
|
|
Loading…
Reference in New Issue