You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Alik Elzin (JIRA)" <ji...@apache.org> on 2015/02/05 07:12:34 UTC

[jira] [Commented] (THRIFT-2979) TThreadPoolServer accepts but does not work with TNonblockingServerSocket

    [ https://issues.apache.org/jira/browse/THRIFT-2979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14306715#comment-14306715 ] 

Alik Elzin commented on THRIFT-2979:
------------------------------------

I see several options for resolution:
1. Change the constructor to accept only the TServerTransport that TThreadPoolServer knows how to work with.
2. Document it.
3. Give a more significant answer that will help understand what was done wrong.

I prefer the 1st option.

> TThreadPoolServer accepts but does not work with TNonblockingServerSocket
> -------------------------------------------------------------------------
>
>                 Key: THRIFT-2979
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2979
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Library
>    Affects Versions: 0.9.2
>         Environment: Windows 7 64b.
>            Reporter: Alik Elzin
>            Priority: Minor
>
> TThreadPoolServer.Args() accepts in the constructor the generic TServerTransport, but when using the TNonblockingServerSocket implementation, and exception is thrown:
> TTransportException: java.net.SocketException: Software caused connection abort: recv failed.
> When switching to THsHaServer, everything worked fine.
> See more info in an SO question:
> http://stackoverflow.com/q/28289569/435605



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