Lua: global table to store state between threads
Abierto
enhancement
help wanted
- Lenguaje dominante
- C++
- Estrellas
- 28.9k
- Forks
- 5.6k
- Merge medio
- 1 d 22 h
- PR fusionados (30 d)
- 430
Descripción
*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
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.