[http_streaming] Reduce log severity if write returns EAGAIN, it

just means that pipe was temporarily full (ref issue #329)
This commit is contained in:
ejurgensen 2017-02-08 22:47:49 +01:00
parent 245ce1d4e4
commit d2fe608c72

View File

@ -204,7 +204,12 @@ streaming_write(uint8_t *buf, uint64_t rtptime)
ret = write(streaming_pipe[1], buf, STREAMING_RAWBUF_SIZE);
if (ret < 0)
DPRINTF(E_LOG, L_STREAMING, "Error writing to streaming pipe: %s\n", strerror(errno));
{
if (errno == EAGAIN)
DPRINTF(E_WARN, L_STREAMING, "Streaming pipe full, skipping write\n");
else
DPRINTF(E_LOG, L_STREAMING, "Error writing to streaming pipe: %s\n", strerror(errno));
}
}
int