diff options
author | David Garcia Quintas <dgq@google.com> | 2015-05-07 17:20:24 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2015-05-07 17:20:24 -0700 |
commit | 4251aad3eb7bbc9220c8b4a8064da82416409ab3 (patch) | |
tree | cfbf2db24e0f40ab79fb535923873130b944c4b3 /src/core/iomgr/tcp_client_posix.c | |
parent | d4f10c03209e731cf5d1793a23d3823ea2b05493 (diff) | |
parent | 442918f225797e28e1bfee023046af4f441a50ae (diff) |
Merge branch 'master' of github.com:grpc/grpc into standalone_benchmarks
Diffstat (limited to 'src/core/iomgr/tcp_client_posix.c')
-rw-r--r-- | src/core/iomgr/tcp_client_posix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/iomgr/tcp_client_posix.c b/src/core/iomgr/tcp_client_posix.c index e20cc3d1b2..2401fe00e4 100644 --- a/src/core/iomgr/tcp_client_posix.c +++ b/src/core/iomgr/tcp_client_posix.c @@ -69,7 +69,8 @@ static int prepare_socket(const struct sockaddr *addr, int fd) { } if (!grpc_set_socket_nonblocking(fd, 1) || !grpc_set_socket_cloexec(fd, 1) || - (addr->sa_family != AF_UNIX && !grpc_set_socket_low_latency(fd, 1))) { + (addr->sa_family != AF_UNIX && !grpc_set_socket_low_latency(fd, 1)) || + !grpc_set_socket_no_sigpipe_if_possible(fd)) { gpr_log(GPR_ERROR, "Unable to configure socket %d: %s", fd, strerror(errno)); goto error; |