我正在尝试获取有关此设置在CouchDb中的功能的更多信息:
[replicator]
socket_options = [{keepalive, true}, {nodelay, false}]
nodelay
做什么?如果设置为true,有什么区别?我似乎无法在CouchDb指南或default.ini中找到有关设置的任何信息(它只是说'某些套接字选项可能会在某些情况下提高性能')
答案 0 :(得分:0)
在erlang docs中找到答案:
{nodelay, Boolean}(TCP/IP sockets)
If Boolean == true, the TCP_NODELAY option is turned on for the socket, which means that even small amounts of data will be sent immediately.