Commit 07123cfd authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Retry on EAGAIN.

Submitted by:	Frederic Lecaille <flecaille@haproxy.com>
parent 73fd9d73
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment