Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OperationCanceledException from Microsoft.Azure.SignalR.ServiceConnection when app restarts #1777

Open
vicancy opened this issue Apr 6, 2023 · 0 comments

Comments

@vicancy
Copy link
Member

vicancy commented Apr 6, 2023

Describe the bug

Facing OperationCanceledException from Microsoft.Azure.SignalR.ServiceConnection specially during every deployment or webapp restart or sometimes we have seen this exception coming even when deployment or restart is not done.

And further there are 2 subtypes :

  1. Error while skipping handshake response
  2. Error while processing messages

The operation was canceled.

Exception:
System.OperationCanceledException: The operation was canceled.
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at System.IO.Pipelines.Pipe.GetReadAsyncResult()
at System.IO.Pipelines.Pipe.DefaultPipeReader.GetResult(Int16 token)
at Microsoft.Azure.SignalR.ServiceConnection.SkipHandshakeResponse(ClientConnectionContext connection, CancellationToken token)

Solution

we can silently fail the connection instead of throwing out the exception

To Reproduce

Exceptions (if any)

Further technical details

  • Your Azure SignalR SDK version
  • Your Server ASPNETCORE version or Assembly version of Microsoft.AspNetCore.SignalR
  • Your SignalR Client SDK version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant