After applying the fix from
THRIFT-2792, the code does no longer work with domain sockets:
$ ./TestServer --domain-socket=/tmp/ThriftTest.thrift
Starting "simple" server (buffered/binary) listen on: /tmp/ThriftTest.thrift
Thrift: Wed Nov 5 21:54:07 2014 TServerSocket::listen() setsockopt() TCP_DEFER_ACCEPT Operation not supported
terminate called after throwing an instance of 'apache::thrift::transport::TTransportException'
what(): Could not set TCP_DEFER_ACCEPT: Operation not supported
Thanks to [~roger.meier] who pointed this out.