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

TNonblockingServer: pass in the connection context to

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.8
    • C++ - Library
    • None

    Description

      From aa5cdf5b40e046b41a0c61e521dba0e78e1887b0 Mon Sep 17 00:00:00 2001
      From: Adam Simpkins <simpkins@fb.com>
      Date: Sat, 17 Apr 2010 01:10:15 +0000
      Subject: [PATCH 23/33] TNonblockingServer: pass in the connection context to
      process()

      Summary:
      When using TNonblockingServer without a ThreadManager, it always passed
      NULL to process(), instead of passing in the context returned by
      TProcessorEventHandler::getContext(). This was broken and could cause
      TProcessorEventHandlers to crash, since they expected to get the value
      they had previously returned via getContext().

      Test Plan:
      Ran the test code in [fb unittest]. The non-threaded TNonblockingServer tests
      no longer crash.

      Revert Plan:
      OK


      lib/cpp/src/server/TNonblockingServer.cpp | 3 ++-
      1 files changed, 2 insertions, 1 deletions

      Attachments

        Activity

          People

            davejwatson@fb Dave Watson
            davejwatson@fb Dave Watson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: