Uploaded image for project: 'REEF (Retired)'
  1. REEF (Retired)
  2. REEF-1421

Transport Client inner thread is not canceled when object is disposed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.16
    • REEF.NET, Wake.NET

    Description

      Currently, StreamingTransportClient starts a new task ResponseLoop, which reads a message with ReadAsync and sends it to the observer in a while loop with a cancellation token.

      When StreamingTransportClient object is disposed, this task should be canceled with the cancellation token. Otherwise, the ResponseLoop will keep running and never end. However, we don't cancel it. After the task is completed, what we see in the logs are endless exception messages thrown from this loop as group communication has been ended.

      The same bug is in TransportClient.

      Attachments

        Issue Links

          Activity

            People

              juliaw Julia Wang
              juliaw Julia Wang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: