Merge pull request #14783 from yashykt/tcpposixfix

Remove unnecessary assert on size check of address length
reviewable/pr14615/r9^2
Yash Tibrewal 7 years ago committed by GitHub
commit 92d11e368b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/core/lib/iomgr/tcp_client_posix.cc

@ -293,7 +293,6 @@ void grpc_tcp_client_create_from_prepared_fd(
int err; int err;
async_connect* ac; async_connect* ac;
do { do {
GPR_ASSERT(addr->len < ~(socklen_t)0);
err = connect(fd, reinterpret_cast<const grpc_sockaddr*>(addr->addr), err = connect(fd, reinterpret_cast<const grpc_sockaddr*>(addr->addr),
addr->len); addr->len);
} while (err < 0 && errno == EINTR); } while (err < 0 && errno == EINTR);

Loading…
Cancel
Save