mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-05 19:52:14 +00:00
[MINOR] checks: make shutdown() silently fail
Shutdown may fail for instance after an RST. So we must not report any error for that.
This commit is contained in:
parent
659d7bc4e3
commit
6315d914b6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user