2023年5月26日
摘要: ```bash http { ... sendfile on ... } ``` sendfile 配置的具体意思: 设置为 on 表示,使用零拷贝技术来传输文件:sendfile ,这样只需要 2 次上下文切换,和 2 次数据拷贝。 设置为 off 表示,使用传统的文件传输技术:read + wr 阅读全文
posted @ 2023-05-26 17:24 每天进步一点点点点点 阅读(454) 评论(0) 推荐(0) 编辑