use local buffer when fetching input

This commit is contained in:
v2ray
2016-07-16 22:08:59 +02:00
parent 00a747afe3
commit bf2d45a83d
+1 -1
View File
@@ -359,7 +359,7 @@ func (this *Connection) updateTask() {
func (this *Connection) FetchInputFrom(conn io.Reader) {
go func() {
payload := alloc.NewBuffer()
payload := alloc.NewLocalBuffer(2048)
defer payload.Release()
for {
payload.Reset()