[ 
https://issues.apache.org/jira/browse/THRIFT-2803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jens Geyer updated THRIFT-2803:
-------------------------------
    Description: 
After applying the fix from THRIFT-2792, the code does no longer work with 
domain sockets:

{code}
$ ./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
{code}

Thanks to [~roger.meier] who pointed this out.

  was:
After applying the fix from THRIFT-2792, the code does no longer work with 
domain sockets:

{code}
$ ./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
{code}



> TCP_DEFER_ACCEPT not supported with domain sockets
> --------------------------------------------------
>
>                 Key: THRIFT-2803
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2803
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Library
>    Affects Versions: 0.9.2
>            Reporter: Jens Geyer
>            Assignee: Jens Geyer
>             Fix For: 0.9.3
>
>
> After applying the fix from THRIFT-2792, the code does no longer work with 
> domain sockets:
> {code}
> $ ./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
> {code}
> Thanks to [~roger.meier] who pointed this out.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to