[master] 07123cfdc Retry on EAGAIN.
Poul-Henning Kamp
phk at FreeBSD.org
Fri Aug 24 19:10:11 UTC 2018
commit 07123cfdca07bad6e0828131e24d9db23d0fe627
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