gpt4 book ai didi

recursion - 检测到 luaRedisGenericCommand() 递归调用

转载 作者:行者123 更新时间:2023-12-02 11:54:52 25 4
gpt4 key购买 nike

我使用Microsoft.Web.RedisSessionStateProvider作为sessionState Provider,它运行许多lua脚本。但我的应用程序捕获了此异常:

@user_script: 14: luaRedisGenericCommand() recursive call detected. Are you doing funny stuff with Lua debug hooks?

redis source code开发者说:

static int inuse = 0;   /* Recursive calls detection. */

/* By using Lua debug hooks it is possible to trigger a recursive call
* to luaRedisGenericCommand(), which normally should never happen.
* To make this function reentrant is futile and makes it slower, but
* we should at least detect such a misuse, and abort. */
if (inuse) {
char *recursion_warning =
"luaRedisGenericCommand() recursive call detected. "
"Are you doing funny stuff with Lua debug hooks?";
redisLog(REDIS_WARNING,"%s",recursion_warning);
luaPushError(lua,recursion_warning);
return 1;
}
inuse++;

但我不知道如何检测此递归以及如何避免此错误!

最佳答案

回收应用程序池并清除 Redis 缓存,它会正常工作..

关于recursion - 检测到 luaRedisGenericCommand() 递归调用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40360251/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com