memcached使用的socket选项
摘要:
memcached主要使用了以下5个socket选项:error = setsockopt(sfd, SOL_SOCKET, SO_KEEPALIVE, (void *)&flags, sizeof(flags));error = setsockopt(sfd, SOL_SOCKET, SO_LINGER, (void *)&ling, sizeof(ling));error = setsockopt(sfd, IPPROTO_TCP, TCP_NODELAY, (void *)&flags, sizeof(flags));setsockopt(sfd, SOL_SOC 阅读全文
posted @ 2012-04-07 18:52 李玉龙 阅读(1432) 评论(0) 推荐(0) 编辑