X11 protocol: error handling best practices for async requests
halfdog
me at halfdog.net
Wed Oct 24 11:09:25 PDT 2012
Hi,
Could someone please point me to the documentation about best practice
when dealing with asynchronous requests on client side. If I understand
[1] correctly, some requests, when successful, will not produce any
reply. Hence a client side library cannot wait on a reply or error from
the server, there might never be any.
What is the best practice for client-side implementation, when receiving
an unexpected error for such a request? Abort immediately since
connection might be out of sync? Pass it to the user side of the
client-side API via some error handler? How should user-side handle it?
hd
[1] http://www.x.org/releases/X11R7.7/doc/xproto/x11protocol.pdf
--
http://www.halfdog.net/
PGP: 156A AE98 B91F 0114 FE88 2BD8 C459 9386 feed a bee
More information about the xorg-devel
mailing list