Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在浏览 libmemcached 1.0.18 代码。一件事我不明白为什么它为每个获取和设置请求创建套接字?是否有任何特殊原因或我的假设是错误的。但是在代码中,我看到为每个请求创建了套接字。
实际上 libmemcached 不会创建套接字来回复同一服务器的每个 get 和 set 请求。我忽略了一些代码块。