This code is associated with this issue.
First, you must install libevent-2.1.12 first, or you can modify CMakeLists.txt to assign link dictionary.
mkdir -p build
cd build
cmake ..
make
./a.out # excute
Maybe you need rm last build dictionary first.
mkdir -p build
cd build
cmake .. -DASYNC_TYPE=SYNC
make
./a.out # excute in sync way
Maybe you need rm last build dictionary first or you must redefine ASYNC_TYPE
mkdir -p build
cd build
cmake .. -DREPLY_TYPE=GOOD_TYPE
make
./a.out # excute in async way and won't cause coredump
Maybe you need rm last build dictionary first or you must redefine ASYNC_TYPE and REPLY_TYPE
mkdir -p build
cd build
cmake .. -DBUILD_TYPE=TSAN
make
TSAN_OPTIONS=log_path=$(cd $(dirname $0); pwd)/tsan.log ./a.out
Run my script must install node first, the tool will send a get request every 2 ms
node test.js