摘要: redis 5.0 命令处理流程 初始化事件驱动数据结构: initServer 中调用 aeCreateEventLoop 方法初始化 server.el 属性,然后调用 listenToPort 方法设置 listen 的 fd,并为这些 fd 绑定读事件 anetTcpHandler。 ane 阅读全文
posted @ 2024-03-31 22:46 yghr 阅读(38) 评论(0) 推荐(0)
摘要: unbound源码分析 版本: 1.17.2 编译选项: ./configure --prefix=your_path --enable-subnet --enable-debug --with-libevent 请求调用栈: 看了worker_handle_request的源码,unbound也是 阅读全文
posted @ 2024-03-31 20:27 yghr 阅读(235) 评论(0) 推荐(0)