mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05:00
[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:
parent
245ce1d4e4
commit
d2fe608c72
@ -204,7 +204,12 @@ streaming_write(uint8_t *buf, uint64_t rtptime)
|
|||||||
|
|
||||||
ret = write(streaming_pipe[1], buf, STREAMING_RAWBUF_SIZE);
|
ret = write(streaming_pipe[1], buf, STREAMING_RAWBUF_SIZE);
|
||||||
if (ret < 0)
|
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
|
int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user