reactphp-redis icon indicating copy to clipboard operation
reactphp-redis copied to clipboard

FiberError: Cannot Resume a Fiber That Is Not Suspended with reactphp-redis During High Concurrency

Open pfk84 opened this issue 1 year ago • 0 comments

I’m not sure if this issue is specifically related to this library or ReactPHP, but currently, it only occurs with reactphp-redis.

When I run something like:

$counter = await($this->redis->eval(self::LUA_SCRIPT, 1, $uri, $period));

During periods of high concurrency, I encounter the following error:

Unhandled promise rejection with FiberError: Cannot resume a fiber that is not suspended in /app/vendor/react/async/src/SimpleFiber.php:28

Do you have any insights into why this is happening or what I could do to resolve it? Interestingly, when I work with the promises directly, everything functions correctly.

pfk84 avatar Sep 17 '24 14:09 pfk84