Use the actual formula

pull/19516/head
Yash Tibrewal 5 years ago
parent 464f558a45
commit 420d5413c7
  1. 6
      src/core/lib/iomgr/tcp_posix.cc

@ -435,9 +435,9 @@ static void tcp_do_read(grpc_tcp* tcp) {
GPR_TIMER_SCOPE("tcp_do_read", 0); GPR_TIMER_SCOPE("tcp_do_read", 0);
struct msghdr msg; struct msghdr msg;
struct iovec iov[MAX_READ_IOVEC]; struct iovec iov[MAX_READ_IOVEC];
char cmsgbuf constexpr size_t cmsg_alloc_space =
[128 /*CMSG_SPACE(sizeof(grpc_core::scm_timestamping)) + CMSG_SPACE(sizeof(int))*/ CMSG_SPACE(sizeof(grpc_core::scm_timestamping)) + CMSG_SPACE(sizeof(int));
]; char cmsgbuf[cmsg_alloc_space];
ssize_t read_bytes; ssize_t read_bytes;
size_t total_read_bytes = 0; size_t total_read_bytes = 0;

Loading…
Cancel
Save