Skip to content

Conversation

@BrennanConroy
Copy link
Member

Fixes #53165

Regressed in f56c242#diff-1a6e4221ebf9343c0f831c3bddda91e203203f07d212575ad2f413ce3b3e2b34L177
We just never had a "server close" test.

@BrennanConroy BrennanConroy added the area-signalr Includes: SignalR clients and servers label Jan 10, 2024
transport = HttpTransportType.WebSockets;
connection = await GetOrCreateConnectionAsync(context, options);

if (connection is not null)
Copy link
Member

Choose a reason for hiding this comment

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

how can this be null?

Copy link
Member Author

Choose a reason for hiding this comment

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

If you attempt to connect with a connection id query string param that doesn't exist on this server instance.

Copy link
Member

Choose a reason for hiding this comment

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

This method name is bad then, GetOrCreateOrNot

Copy link
Member Author

Choose a reason for hiding this comment

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

😆 this method name is >8 years old now.

Copy link
Member

Choose a reason for hiding this comment

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

I blame myself

Copy link
Member Author

Choose a reason for hiding this comment

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

I do too 😉

@elitastic
Copy link

This is great news, thank you @BrennanConroy!

Is there a temporary workaround available to prevent a slow shutdown?

@BrennanConroy BrennanConroy merged commit 55eee2e into main Jan 16, 2024
@BrennanConroy BrennanConroy deleted the brecon/wsclose branch January 16, 2024 17:06
@ghost ghost added this to the 9.0-preview1 milestone Jan 16, 2024
@BrennanConroy
Copy link
Member Author

/backport to release/8.0

@github-actions
Copy link
Contributor

Started backporting to release/8.0: https://github.com/dotnet/aspnetcore/actions/runs/7545049507

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

Labels

area-signalr Includes: SignalR clients and servers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SignalR prevents .NET8 app to stop if clients are connected

4 participants