用于在CouchDb中将复制器socket_options nodelay设置为true的目的

时间:2014-02-12 23:15:50

标签: couchdb

我正在尝试获取有关此设置在CouchDb中的功能的更多信息:

[replicator]
socket_options = [{keepalive, true}, {nodelay, false}]

nodelay做什么?如果设置为true,有什么区别?我似乎无法在CouchDb指南或default.ini中找到有关设置的任何信息(它只是说'某些套接字选项可能会在某些情况下提高性能')

1 个答案:

答案 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.