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

TNonblocking server should release handler as soon as connection closes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.2
    • C++ - Library
    • None
    • Patch Available

    Description

      Because connections are cashed until new connection is accepted, handlers from *IfFactory are not released when connection closes.

      This is a little inconvenient if for example, different handlers are used per user to hold some client session informations.

      Change includes single line added in close - reset of processor_ shared_ptr. This pointer is later assigned in init (when connection is reused) so there shouldn't be any performance change.

      Attachments

        1. THRIFT-2092.patch
          0.5 kB
          Konrad Grochowski

        Activity

          People

            roger Roger Meier
            hcorg Konrad Grochowski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: