You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King, III (JIRA)" <ji...@apache.org> on 2018/03/12 10:58:00 UTC

[jira] [Resolved] (THRIFT-4465) TNonblockingServer throwing THRIFT LOGGER: TConnection::workSocket(): THRIFT_EAGAIN (unavailable resources)

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

James E. King, III resolved THRIFT-4465.
----------------------------------------
       Resolution: Fixed
    Fix Version/s: 0.12.0

{noformat}
commit 8bcb7ac2be2f28e5fddfe578645c2aaa98b94717 (HEAD -> master, origin/master, origin/HEAD)
Author: Bugra Gedik <bg...@unscrambl.com>
Date:   Sun Jan 21 09:43:49 2018 -0800

    THRIFT-4465: Fix C++ TNonblockingServer and THRIFT_EAGAIN issues
    Client: cpp
    
    This closes #1497
{noformat}

> TNonblockingServer throwing THRIFT LOGGER: TConnection::workSocket(): THRIFT_EAGAIN (unavailable resources)
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: THRIFT-4465
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4465
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Library
>    Affects Versions: 0.11.0
>            Reporter: Buğra Gedik
>            Assignee: James E. King, III
>            Priority: Critical
>             Fix For: 0.12.0
>
>
> Once I upgraded to 0.11.0, I'm getting the following error occasionally:
> THRIFT LOGGER: TConnection::workSocket(): THRIFT_EAGAIN (unavailable resources)
> I tracked this to the following change: [https://github.com/apache/thrift/commit/808d143245f4f5c30600fab31cf9db854cbf5b48#diff-fe8fec8ec38ea35df64cfcc305e3ab08]
>   
> {code:java}
> // Work the socket right away
> - // workSocket();
> + workSocket();
> {code}
> While adding SSL support, @dthaluru has re-activated the above line. From my own testing, this causes occasional THRIFT_EAGAIN exceptions. It seems like this is due to calling workSocket() too early and the socket gets a read call in non-blocking mode before it has data.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)