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

C# client leaks sockets/handles

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9
    • Fix Version/s: 0.9.1
    • Component/s: C# - Compiler, C# - Library
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      The C# client code does not correctly clean up the transport used, so the programmer has to take care on his own about this. This may even lead to a program hang in certain scenarios. Furthermore, the generated client should support IDisposable.

      Note that in contrast, the server side handles this automatically without any explicit manual coding.

      TODO:

      • modify generated code to add IDisposable support
      • modify TProtocol to add IDisposable support
      • update the tutorial code accordingly

        Attachments

          Activity

            People

            • Assignee:
              jensg Jens Geyer
              Reporter:
              jensg Jens Geyer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: