[PATCH] wayland-server: update the client fd when it failed to flush with EAGAIN
Pekka Paalanen
ppaalanen at gmail.com
Tue Nov 27 12:24:07 UTC 2018
On Tue, 27 Nov 2018 17:59:16 +0900
박성진 <sj76.park at samsung.com> wrote:
> Hi Derek>> On 11/22/18 11:08 PM, Jeonghyun Kang wrote:
> > What if it's a frame event that gets dropped and not an input event? Or
> > a resource destroy?
> Instead of destroying a connection, destroying a resource seems to be more
> reasonable.
No, you cannot do that either. It too will cause the client and the
server to get out of sync, which may eventually lead to a fatal
protocol error.
Really, the only thing you can do is either disconnect the client or
halt its connection until it drains. Halting would require explicit
support throughout the compositor to avoid sending any events, so
disconnecting is the only thing that libwayland-server can do by itself.
Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20181127/e07fb5cb/attachment.sig>
More information about the wayland-devel
mailing list