-
Notifications
You must be signed in to change notification settings - Fork 155
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
How to initiate disconnection? #127
Comments
Im currently using |
Yes, I tried that one as well. The problem with that is, when I tested the Though when I explicitly called the I created a PR for that: #130 |
Shouldnt
while (!connectionContext.ConnectionClosed.IsCancellationRequested)
{
await connectionSession.Reader.ReadAsync(_protocol);
var packet = result.Message;
//.... Handle packet ....
} |
Abort is the way to disconnect the transport for sure. |
@davidfowl In #130 PR. In the samples/ClientApplication/Program.cs at line 366, if I replace the |
Calling DisposeAsync to abort is incorrect. Calling Abort should work, if it doesn't work then there's a bug. DisposeAsync is implicitly called by the pipeline when the code unwinds. |
How to disconnect the client from the server?
The text was updated successfully, but these errors were encountered: