Disable Nagle's algorithm in libuv endpoints

pull/8544/head
murgatroid99 8 years ago
parent c5d447eb30
commit 12e5775bd0
  1. 2
      src/core/lib/iomgr/tcp_uv.c

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

Loading…
Cancel
Save