envoyproxy/envoy

Lua: global table to store state between threads

开放

#4,027 创建于 2018年8月1日

 (8 条评论) (3 个反应) (0 位负责人)C++ (5,373 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (27,997 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Description: Lua state is per worker and it will be non-trivial/impossible to share it between threads. A global storage for Lua is to provide a Lua API that wraps a metadata/table that calls into C++ code with proper locking to set/get items in a global table. All Lua code can access global table and share state in different Envoy Lua filters.

The original request is from #4008

贡献者指南