[6.0] a2e09ed58 Retry on EAGAIN.

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Oct 31 13:08:07 UTC 2018


commit a2e09ed5892e09edde59f5b631c827ebe3bff7ed
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri Aug 24 19:08:07 2018 +0000

    Retry on EAGAIN.
    
    Submitted by:   Frederic Lecaille <flecaille at haproxy.com>

diff --git a/bin/varnishtest/vtc_syslog.c b/bin/varnishtest/vtc_syslog.c
index 4221b40eb..f91014c9a 100644
--- a/bin/varnishtest/vtc_syslog.c
+++ b/bin/varnishtest/vtc_syslog.c
@@ -306,7 +306,7 @@ syslog_rx(const struct syslog_srv *s, int lvl)
 
 		ret = recv(s->sock, s->rxbuf, s->rxbuf_sz - 1, 0);
 		if (ret < 0) {
-			if (errno == EINTR)
+			if (errno == EINTR || errno == EAGAIN)
 				continue;
 
 			vtc_fatal(s->vl,


More information about the varnish-commit mailing list