-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
再做性能测试的时候,做了100并发的websocket连接,稳定跑了半个多小时之后,在ws新建链接的时候宕机了,看了代码只调用了WebSocketClient::open
堆栈如下:
(gdb) bt
#0 0x00007ff64d833d9c in iowatcher_add_event () from /home/hytxccp/unimrcpserver/lib/libhv.so
#1 0x00007ff64d83872f in hio_add () from /home/hytxccp/unimrcpserver/lib/libhv.so
#2 0x00007ff64d832ab5 in hio_connect () from /home/hytxccp/unimrcpserver/lib/libhv.so
#3 0x00007ff64d87f639 in hv::TcpClientEventLoopTmplhv::WebSocketChannel::startConnect() () from /home/hytxccp/unimrcpserver/lib/libhv.so
#4 0x00007ff64dabc3c7 in operator() (__args#0=0x7ff648017948, this=0x7ff648017988) at /usr/include/c++/4.8.2/functional:2471
#5 hv::EventLoop::onCustomEvent (hev=) at ../../plugins/common/include/hv/EventLoop.h:224
#6 0x00007ff64d835b27 in eventfd_read_cb () from /home/hytxccp/unimrcpserver/lib/libhv.so
#7 0x00007ff64d834b6d in hio_read_cb () from /home/hytxccp/unimrcpserver/lib/libhv.so
#8 0x00007ff64d835567 in hio_handle_read () from /home/hytxccp/unimrcpserver/lib/libhv.so
#9 0x00007ff64d83363b in hio_handle_events () from /home/hytxccp/unimrcpserver/lib/libhv.so
#10 0x00007ff64d837517 in hloop_process_events () from /home/hytxccp/unimrcpserver/lib/libhv.so
#11 0x00007ff64d838c6b in hloop_run () from /home/hytxccp/unimrcpserver/lib/libhv.so
#12 0x00007ff64dabd310 in run (this=0x7ff648144028) at ../../plugins/common/include/hv/EventLoop.h:54
#13 hv::EventLoopThread::loop_thread(std::function<int ()> const&, std::function<int ()> const&) (this=0x7ff64801fc88, pre=..., post=...) at ../../plugins/common/include/hv/EventLoopThread.h:95
#14 0x00007ff64d5a6330 in ?? () from /lib64/libstdc++.so.6
#15 0x00007ff64fe00ea5 in start_thread () from /lib64/libpthread.so.0
#16 0x00007ff64f82796d in clone () from /lib64/libc.so.6