[Xcb] Question about a xcb_util.c commit

Alan Coopersmith alan.coopersmith at oracle.com
Fri Jun 10 16:58:15 UTC 2016

On 06/10/16 09:50 AM, Josh Triplett wrote:
> On Fri, Jun 10, 2016 at 04:30:34PM +0200, David Coppa wrote:
>> I have a question regarding this particular commit, "Fallback to
>> TCP if no protocol is specified and the UNIX connection fails",
>> that you can see at
>> https://cgit.freedesktop.org/xcb/libxcb/commit/?id=7d235c62f0d5bd0df1236cc52141c10c5d272a18
>> Does anyone know the rationale behind it?
> Compatibility with the historical behavior of Xlib.  See
> https://lists.x.org/archives/xorg-devel/2010-April/007915.html .
> DISPLAY=:0 (or any :N) without a protocol specified means to try a UNIX
> socket and then TCP.

Which I think was needed in the past for proxies like ssh & xscope that only
opened TCP sockets rather than baking in knowledge of the Unix domain socket
paths that X used but weren't formally specified.

	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc

More information about the Xcb mailing list