Skip to content

Exception in MsQuicStream.HandleWriteStartState can abandon CancellationTokenRegistration #55437

Description

@geoffkizer

In HandleWriteStartState, we do some initial checks, then register a CancellationTokenRegistration, and then do some additional checks on SendState that could throw. If these do throw, then the CancellationTokenRegistration is abandoned and could fire at any time in the future, which is not what we want.

At a minimum we should unregister the CancellationTokenRegistration if an exception occurs here. Better, it would be good to avoid registering it until after we have done the checks that may throw. It's not obvious to me if this is valid to do, though.

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Jul 9, 2021
  2. added this to the 6.0.0 milestone on Jul 9, 2021
  3. removed
    untriagedNew issue has not been triaged by the area owner
    on Jul 12, 2021
  4. karelz commented on Jul 15, 2021

    @karelz
    Member

    Triage: We have similar problem in Read part -- over there the checks won't have impact on customers / users of the API. We will just raise useless event.
    We should check if it is the same here. If yes, we can punt to 7.0. Otherwise fix it.

  5. removed their assignment
    on Jul 27, 2021
  6. modified the milestones: 6.0.0, Future on Aug 10, 2021
  7. modified the milestones: Future, 7.0.0 on Sep 21, 2021
  8. added
    tenet-reliabilityReliability/stability related issue (stress, load problems, etc.)
    on May 18, 2022
  9. added a commit that references this issue on Jun 8, 2022
    4c5fea6
  10. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Jun 8, 2022
  11. added a commit that references this issue on Jun 15, 2022
    702c1ea
  12. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Jun 15, 2022
  13. added a commit that references this issue on Jun 16, 2022
    9a80f1d
  14. added a commit that references this issue on Jun 23, 2022
    5776aad
  15. ghost locked as resolved and limited conversation to collaborators on Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions