Skip to content

Conversation

@JamesNK
Copy link
Member

@JamesNK JamesNK commented Jun 30, 2021

Ensure that the outbound control stream is completed when the connection is completed.

(right now it is completed via Stream.Abort, future issue will cover graceful shutdown)


lock (_sync)
{
OutboundControlStream?.Abort(connectionError, (Http3ErrorCode)_errorCodeFeature.Error);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the lock really necessary? If we see a stale null OutboundControlStream, is it wrong to treat it as if it hadn't been fully created? I know this lock was there before and it doesn't really hurt if it's generally uncontested. I'm just curious.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's probably not necessary. Can look at cleaning it up in the future.

@ghost
Copy link

ghost commented Jun 30, 2021

Hello @JamesNK!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@JamesNK
Copy link
Member Author

JamesNK commented Jul 2, 2021

/azp build

@azure-pipelines
Copy link

Command 'build' is not supported by Azure Pipelines.

Supported commands
  • help:
    • Get descriptions, examples and documentation about supported commands
    • Example: help "command_name"
  • list:
    • List all pipelines for this repository using a comment.
    • Example: "list"
  • run:
    • Run all pipelines or specific pipelines for this repository using a comment. Use this command by itself to trigger all related pipelines, or specify specific pipelines to run.
    • Example: "run" or "run pipeline_name, pipeline_name, pipeline_name"
  • where:
    • Report back the Azure DevOps orgs that are related to this repository and org
    • Example: "where"

See additional documentation.

@JamesNK
Copy link
Member Author

JamesNK commented Jul 2, 2021

/asp run

@JamesNK JamesNK force-pushed the jamesnk/http3-connectionshutdown-controlstream branch from 0fa84bc to 77fb3af Compare July 2, 2021 23:07
@JamesNK
Copy link
Member Author

JamesNK commented Jul 3, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@ghost ghost merged commit 83cc8be into main Jul 3, 2021
@ghost ghost deleted the jamesnk/http3-connectionshutdown-controlstream branch July 3, 2021 06:03
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Jun 6, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants