Skip to content

Include connection close details in stream's SHUTDOWN_COMPLETE#2872

Merged
nibanks merged 2 commits intomicrosoft:mainfrom
ManickaP:mapichov/stream-shutdown-details
Jul 7, 2022
Merged

Include connection close details in stream's SHUTDOWN_COMPLETE#2872
nibanks merged 2 commits intomicrosoft:mainfrom
ManickaP:mapichov/stream-shutdown-details

Conversation

@ManickaP
Copy link
Member

@ManickaP ManickaP commented Jul 6, 2022

Description

This PR is just a proposal of a change that would eventually help us get rid of an explicit link from stream to connection. We'd like to adopt SafeHandle reference counting to keep connection alive for all the streams instead of a manual reference counting.

The event contains information whether it's happening due to connection closure, but it doesn't contain any details. As a result, the user has to manually keep reference between stream and connection if they want to use those details. This is the last thing that forces us to keep reference from stream to connection.

Testing

Local test with System.Net.Quic and closing the connection via application and via idle timeout while stream is opened.

Documentation

Is there any documentation impact for this change?

  • Yes. I can fill it in if this proposal gets a green light.
  • I haven't found any reference to event details in the docs, but I've updated the log message.

@nibanks
Copy link
Collaborator

nibanks commented Jul 6, 2022

I'm fine with this change.

@ManickaP ManickaP force-pushed the mapichov/stream-shutdown-details branch from c95bd00 to d2a442d Compare July 6, 2022 17:15
@ManickaP ManickaP force-pushed the mapichov/stream-shutdown-details branch from d2a442d to 9d388b1 Compare July 6, 2022 18:40
@ManickaP ManickaP marked this pull request as ready for review July 6, 2022 19:39
@ManickaP ManickaP requested a review from a team as a code owner July 6, 2022 19:39
@nibanks
Copy link
Collaborator

nibanks commented Jul 7, 2022

  • I haven't found any reference to event details in the docs, but I've updated the log message.

Yeah, we still haven't added the stream event documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants