From 4bdd0696373b5a683cfab905c65c5af103855bd3 Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Mon, 27 Feb 2023 17:31:55 +0100 Subject: [PATCH] MINOR: quic: consider EBADF as critical on send() EBADF on sendto() is considered as a fatal error. As such, it is removed from the list of the transient errors. The connection will be killed when encountered. For the record, EBADF can be encountered on process termination with the listener socket. This should be backported up to 2.7. --- src/quic_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quic_sock.c b/src/quic_sock.c index 95f771135e..77a2a89f55 100644 --- a/src/quic_sock.c +++ b/src/quic_sock.c @@ -619,7 +619,7 @@ int qc_snd_buf(struct quic_conn *qc, const struct buffer *buf, size_t sz, &quic_stats_module); if (errno == EAGAIN || errno == EWOULDBLOCK || - errno == ENOTCONN || errno == EINPROGRESS || errno == EBADF) { + errno == ENOTCONN || errno == EINPROGRESS) { if (errno == EAGAIN || errno == EWOULDBLOCK) HA_ATOMIC_INC(&prx_counters->socket_full); else -- 2.47.3