mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
use local buffer when fetching input
This commit is contained in:
parent
00a747afe3
commit
bf2d45a83d
@ -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…
x
Reference in New Issue
Block a user