mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pulse-server: relax some warnings
Don't emit warnings for EPIPE and ECONNRESET when received from recv. Some apps just disconnect violently. Fixes #2141
This commit is contained in:
parent
0df9d03729
commit
d2f8cd2114
1 changed files with 3 additions and 1 deletions
|
|
@ -226,7 +226,8 @@ static int do_read(struct client *client)
|
||||||
if (errno == EINTR)
|
if (errno == EINTR)
|
||||||
continue;
|
continue;
|
||||||
res = -errno;
|
res = -errno;
|
||||||
if (res != -EAGAIN && res != -EWOULDBLOCK)
|
if (res != -EAGAIN && res != -EWOULDBLOCK &&
|
||||||
|
res != -EPIPE && res != -ECONNRESET)
|
||||||
pw_log_warn("recv client:%p res %zd: %m", client, r);
|
pw_log_warn("recv client:%p res %zd: %m", client, r);
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
@ -327,6 +328,7 @@ done:
|
||||||
error:
|
error:
|
||||||
switch (res) {
|
switch (res) {
|
||||||
case -EPIPE:
|
case -EPIPE:
|
||||||
|
case -ECONNRESET
|
||||||
pw_log_info("server %p: client %p [%s] disconnected",
|
pw_log_info("server %p: client %p [%s] disconnected",
|
||||||
client->server, client, client->name);
|
client->server, client, client->name);
|
||||||
SPA_FALLTHROUGH;
|
SPA_FALLTHROUGH;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue