Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4465

TNonblockingServer throwing THRIFT LOGGER: TConnection::workSocket(): THRIFT_EAGAIN (unavailable resources)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.11.0
    • Fix Version/s: 0.12.0
    • Component/s: C++ - Library
    • Labels:
      None

      Description

      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
       

      // Work the socket right away
      
      - // workSocket();
      
      + workSocket();
      
      

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jking3 James E. King III
                Reporter:
                bgedik Buğra Gedik
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: