ithewei

Results 131 comments of ithewei

Stop will join and wait EventLoopThread exit, you can add some print in EventLoopThread::loop_thread function to diagnose why the thread didn't exit.

libhv里确实没有用到ATOMIC_INC、ATOMIC_DEC的返回值,这里windows下可以考虑使用InterlockedAdd,而不是InterlockedIncrement/InterlockedDecrement,应该就可以了吧

websockets client use wss:// scheme. websockets server refer to https://github.com/ithewei/libhv/blob/fded2ba287199d3c20c619e06ddc571e2972ed92/examples/websocket_server_test.cpp#L102

通过so_rcvtimeo设置了接收超时的,windows 10060和linux 11错误码都是超时未收到响应导致的,这个是正常现象

我发现有个socket选项可能没用适配ipv6,把IPPROTO_ICMP改成IPPROTO_ICMPV6试试呢

应该是ICMPV6和ICMP的报文内容也不同,需要详细研究下

需要的话你提PR吧

这不是写的挺好吗

这个改动影响比较大,不仅仅是cmake构建方式,还有Makefile、bazel都要改。 另外关闭evpp就是只使用纯c部分,默认你的使用场景也是纯c,或者你可以选择不要使用hv.h,自己#include需要的头文件

你可以在cmake里这么设置下 ``` set_target_properties(hv_static PROPERTIES OUTPUT_NAME hv) ```