use local buffer when fetching input

pull/215/head
v2ray 8 years ago
parent 00a747afe3
commit bf2d45a83d
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -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()

Loading…
Cancel
Save