-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Failed Connections #1431
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
Comments
Failed connection will throw exception. If the source was cancellation, then it will be |
It doesn't help that much, we would need to know what are the exceptions thrown in case of connection error, etc. |
Wow... @karelz I really appreciate you answering, but nowhere in the documents or your comments tells us what is the failed connection exception thrown or any other error. In the old MS Docs, the possible exceptions thrown by any object method were documented. I will look in the old docs if I can find info on ClientWebSocket ;) |
The content from the old MS docs were mostly all ported here @cspaniard - we're working on the last few migration issues. We don't usually document common exceptions that are caused by external factors instead of directly caused by the use of the API if that makes sense, such as network errors, IO errors, etc. So for this API, we should document at least the following exceptions based on what I see here:
I'll schedule to do this on a future sprint |
Thanks @mairaw... I appreciate you looking into this issue. These are the exceptions I get just by specifying a bad port:
Taking into account what you mentioned, I don't know how to solve this, but IMHO I think that at least Again, thanks for looking into it... David |
So I fell over this recently.
and on
According to https://referencesource.microsoft.com/#System/net/System/Net/WebSockets/ClientWebSocket.cs,9503b6a5d6701068, which was referenced above, everything that is not a |
What do we expect on a failed connection? Would it be a cancelled
Task
or a faultedTask
?Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: