evpp
evpp copied to clipboard
A modern C++ network library for developing high performance network services in TCP/UDP/HTTP protocols.
业务创建了个离线线程并使用evnsq来消费nsq,并取了个线程名,但在机器上看出现了200+个相同线程名的线程,是EventLoop Run函数创建的嘛
evpp::EventLoop loop;这行报错是啥原因。。。 
https://github.com/Qihoo360/evpp/blob/master/examples/echo/udpecho/main.cc#L29 I believe L29 should be after L34.
我的代码在某些场景中,可能会频繁打开、关闭TCPClient连接,于是做了个压力测试,发现程序会崩溃,想询问一下这是不是一个不正确的使用方式 测试代码如下 ``` cpp #include #include #include #include #include #include #include #include using namespace evpp; int main() { // 测试的server数量 const int tnum = 4; auto base_thread = std::make_shared(); base_thread->Start(true);...
### 1. libevent ``` git clone https://github.com/libevent/libevent.git git checkout release-2.1.8-stable ./autogen.sh ./configure mkdir build && cd build !!! 修改CMakeLists.txt,添加: set(CMAKE_POSITION_INDEPENDENT_CODE ON) cmake .. // 如果没有openssl,使用:cmake -DEVENT__DISABLE_OPENSSL=ON .. make sudo make...
cmake doesn't look for it, and build fails: ``` /usr/ports/net/evpp/work/evpp-0.7.0-92-gb4b3945/evpp/logging.h:9:10: fatal error: 'glog/logging.h' file not found #include ^~~~~~~~~~~~~~~~ ```
ubuntu18 虚拟机下 按照此文档 http://www.mamicode.com/info-detail-2395947.html 下载的各个lib包和编译。boost用的1.69.编译的时候报错。通过在handler_allocator中添加#include 解决。但是make test 的时候还是报错了。具体错误如下: make test Running tests... Test project /home/ce/evppbuild/evpp/build Start 1: evpp_unittest 1/3 Test #1: evpp_unittest ....................***Exception: SegFault 10.49 sec Start 2: evpp_unittest_concurrentqueue 2/3...
Linked https://github.com/microsoft/vcpkg/issues/12349
请问:evpp性能比其他库高的诀窍在什么地方呢?