mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02: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';
|
s->check_data[s->check_data_len - 1] = '\0';
|
||||||
|
|
||||||
/* Close the connection... */
|
/* Close the connection... */
|
||||||
int shut = shutdown(fd, SHUT_RDWR);
|
shutdown(fd, SHUT_RDWR);
|
||||||
int err = errno;
|
|
||||||
if (shut == -1) {
|
|
||||||
Alert("event_srv_chk_r(): err = %i, %s\n", err, strerror(err));
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Run the checks... */
|
/* Run the checks... */
|
||||||
if (s->proxy->options & PR_O_HTTP_CHK) {
|
if (s->proxy->options & PR_O_HTTP_CHK) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user