合并最新版本后
1.消息没有延迟了;
2.容易闪退:
05-27 10:38:27.663 12645-13125/xx.xx.xx A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 13125 (yasio-evloop), pid 12645 (vatecasino.xx)
合并最新版本后
1.消息没有延迟了;
2.容易闪退:
05-27 10:38:27.663 12645-13125/xx.xx.xx A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 13125 (yasio-evloop), pid 12645 (vatecasino.xx)
1.现在的消息收发很奇怪,我们有一个帧同步的游戏,一段时间内消息不延迟,然后会暂停一下(2,3秒的样子),再收到一些消息,再暂停……循环这个流程;
2.频繁向服务端发送数据容易导致闪退。我这边测试,服务端向客户端频繁发消息或客户端不频繁的向服务端发消息不会导致闪退
3.使用的kcp的流模式;
4.上个版本不会闪退
好,我看看
给你发了私消息,你看一下
最新修改,更新下,应该不会再出你说的奇怪现象了: https://github.com/halx99/yasio/commit/b75993ee5cf76031eaa481d1684821ef7b5f40a0
最新版本确实不会闪退了,消息也不会是一段一段的收了,辛苦大佬
yasio-v3.21.1~v3.21.3f1更新内容:
yasio-3.22.0更新内容:
yasio-3.23.0
Make length field based frame decode associate with channel.
Make decode length function associate with channel.
Make transport send,flush as private for internal use.
Change channel default length decode behavior to directly.
Rename YOPT_RESOLV_FUNCTION to YOPT_RESOLV_FN.
Rename YOPT_CONSOLE_PRINT_FUNCTION to YOPT_CONSOLE_PRINT_FN.
Rename YOPT_DECODE_FRAME_LENGTH_FUNCTION to YOPT_CHANNEL_LFBFD_FN.
Rename YOPT_LFBFD_PARAMS to YOPT_CHANNEL_LFBFD_PARAMS.
Rename YOPT_IO_EVENT_CALLBACK to YOPT_IO_EVENT_CB.
yasio-3.23.1
紧跟大佬的脚步
yasio-3.23.6
yasio_close2
to yasio_close_handle
Long-Running Operations
at event callback.yasio-3.26.0发布
建议不要用线程。。。。。。。。。
tcp连接,异步是最好的方案
了解一下多核艺术
设计原本就是nonblocking的,进一步隐藏传输细节,和ws异曲同工, 区别就是更纯粹一些
yasio-3.30.0 发布
Tidy option macros.
Add YCF_ enums to control channel to support more features.
Add multicast support.
Add a workaround implementation to support win32 udp-server.
Add io_service::cindex_to_handle.
Add ftp sever example.
Remove loop behavior of deadline_timer, user can schedule again when it’s expired.
Add obstream::write_byte.
Add to_strf_v4 for ip::endpoint.
Optimizing for file transfer, avoid high cpu occupation when system kernel send buffer is full.
More safe to check object valid which allocated from pool.
Add send complete callback.
Mark io_service::dispatch_events deprecated, use dispatch to instead.
Add YCF_REUSEPORT to control whether to enable socket can bind same port, default and previous vesion is enabled.
Implement case insensitive starts_with, ends_with at string_view.hpp.
Ignore SIGPIPE for tcp at non-win32 system.
Remove reconnect timeout.
异步其实是主线程托管了一个线程而已,
不要迷恋线程,尤其是客户端。