Skip to content

ConnectionLostException should not be thrown when request is already canceled #265

@richardstanton

Description

@richardstanton

I believe the intent of the ConnectionLostException is to occur when there was an unexpected error from the connection or server. However, if the client has canceled the request or disposed, then it was requested by the client and should be reported as a cancelation.
In VisualStudio several components run into a situation when closing or when aborting a background process that gets the exception unexpectedly. These code paths expect cancelation and go into an error state when they get the exception.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions