Merge pull request #8544 from murgatroid99/node_perf_investigation

Disable Nagle's algorithm in libuv endpoints
pull/8239/head^2
Michael Lumish 8 years ago committed by GitHub
commit b78062dc0d
  1. 3
      src/core/lib/iomgr/tcp_uv.c

@ -315,6 +315,9 @@ grpc_endpoint *grpc_tcp_create(uv_tcp_t *handle, char *peer_string) {
gpr_log(GPR_DEBUG, "Creating TCP endpoint %p", tcp);
}
/* Disable Nagle's Algorithm */
uv_tcp_nodelay(handle, 1);
memset(tcp, 0, sizeof(grpc_tcp));
tcp->base.vtable = &vtable;
tcp->handle = handle;

Loading…
Cancel
Save