From 6315d914b6c0ac3a292cadea39cc4b1a21f416a0 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 16 Mar 2010 20:57:57 +0100 Subject: [PATCH] [MINOR] checks: make shutdown() silently fail Shutdown may fail for instance after an RST. So we must not report any error for that. --- src/checks.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/checks.c b/src/checks.c index f808db0ba..82939dc76 100644 --- a/src/checks.c +++ b/src/checks.c @@ -917,11 +917,7 @@ static int event_srv_chk_r(int fd) s->check_data[s->check_data_len - 1] = '\0'; /* Close the connection... */ - int shut = shutdown(fd, SHUT_RDWR); - int err = errno; - if (shut == -1) { - Alert("event_srv_chk_r(): err = %i, %s\n", err, strerror(err)); - } + shutdown(fd, SHUT_RDWR); /* Run the checks... */ if (s->proxy->options & PR_O_HTTP_CHK) {