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

On windows AsyncSubscriber causes exception in libuv upon destruction

Open borisu opened this issue 2 weeks ago • 0 comments

Not sure it bug or not but I am experiencing mentioned exception when destroying the object.

I am using redis++ via vcpkg for the https://github.com/borisu/bricks

In general, code template looks like that

auto redis = new AsyncRedis("....");
auto subscriber = new AsyncSubscriber(redis->subscriber());

/* do things */

try {
	auto f = subscriber->unsubscribe();
	f.wait();
}
catch (std::exception&) {};
delete subscriber;
delete redis

what happens is crash like that :- Assertion failed: 0, file \vcpkg\buildtrees\libuv\src\v1.46.0-608af35d5c.clean\src\win\handle.c, line 71

Environment:

  • OS: Windows
  • Compiler: MSVC
  • hiredis version: latest of vcpkg
  • redis-plus-plus version: latest of vcpkg

Additional context Add any other context about the problem here.

borisu avatar Jun 23 '24 00:06 borisu