You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried the similar stuffs the other day before. I found it's tricky and it may depend on what OS or what boost versions.
For Ubuntu 20.04, multi-thread with single io_context variables (but shared that event processor across threads as your code, it seems to work fine.
However, on CentOS 8, that does not work unless you assign each thread a standalone io_cotext, which means, each redisAsyncClient must consume its own event processor... otherwise, it can cause segmentation fault, which means.... maybe not thread-safe...
A single instance redisclient cannot be used from multiple threads. Use signle redisclient per thread or one thread with a redisclient for all other threads.
output error:
connect success
success
success
success
success
success
success
success
success
success
main: malloc.c:2394: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
Aborted (core dumped)
not run in mutil thread io service?
The text was updated successfully, but these errors were encountered: