protocol: improve flushing

Use the IO_OUT flag to schedule flushing instead of a flush_event.

Handle EGAIN and wait for IO_OUT to try again.

Fixes #111
This commit is contained in:
Wim Taymans 2019-10-01 12:53:56 +02:00
parent 3d48ba8394
commit cc8e992cd1
2 changed files with 62 additions and 39 deletions

View file

@ -502,8 +502,6 @@ int pw_protocol_native_connection_flush(struct pw_protocol_native_connection *co
continue;
else {
res = -errno;
pw_log_error("could not sendmsg on fd:%d n_fds:%d: %s",
conn->fd, n_fds, spa_strerror(res));
goto exit;
}
}