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

Uncaught exception in thrift c# driver

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9, 0.9.1
    • 0.9.2
    • C# - Library
    • Patch Available

    Description

      A following exception may be occasionally thrown by the current c# thrift driver:

      message=Cannot access a disposed object.
      Object name: 'System.Net.Sockets.Socket'.

      stack=
      at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
      at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
      at Thrift.Transport.TSocket.ConnectCallback(IAsyncResult asyncres) in d:\BDA-experiments\thrift-0.9.1\lib\csharp\src\Transport\TSocket.cs:line 177

      All exceptions should be caught and handled in the Thrift.Transport.TSocket.ConnectCallback and all other callbacks.

      proposed fix:
      https://github.com/apache/thrift/pull/79

      Attachments

        Issue Links

          Activity

            People

              jensg Jens Geyer
              js_struq Janis Ser
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified