Browse Source

release buffer

v2ray 9 năm trước cách đây
mục cha
commit
2f47074c98
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      testing/servers/tcp/tcp.go

+ 1 - 0
testing/servers/tcp/tcp.go

@@ -50,6 +50,7 @@ func (server *Server) handleConnection(conn net.Conn) {
 			break
 		}
 		response := server.MsgProcessor(request.Value)
+		request.Release()
 		conn.Write(response)
 	}
 	conn.Close()