From d0bcf33155307f66b7e5a35f7934735f83665945 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Sun, 12 Aug 2012 18:18:00 -0400 Subject: [PATCH] Fix --- libmemcached/connect.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libmemcached/connect.cc b/libmemcached/connect.cc index dfe69c0b..8d027df2 100644 --- a/libmemcached/connect.cc +++ b/libmemcached/connect.cc @@ -259,6 +259,7 @@ static void set_socket_options(org::libmemcached::Instance* server) int error= setsockopt(server->fd, SOL_SOCKET, SO_SNDTIMEO, &waittime, (socklen_t)sizeof(struct timeval)); + (void)error; assert(error == 0); } #endif @@ -284,11 +285,14 @@ static void set_socket_options(org::libmemcached::Instance* server) int set= 1; int error= setsockopt(server->fd, SOL_SOCKET, SO_NOSIGPIPE, (void *)&set, sizeof(int)); + assert(error == 0); + // This is not considered a fatal error if (error == -1) { - WATCHPOINT_ERRNO(get_socket_errno()); +#if 0 perror("setsockopt(SO_NOSIGPIPE)"); +#endif } } #endif -- 2.30.2