Canceling TcpClient after TcpListener has been stopped
So, I may have done this completely right, but I'm a bit unsure on the behavior. I'm creating TcpClients with
To wit, I'm expecting to end up hitting
AcceptTcpClientAsync and passing it a CancellationToken which does seem to end the TcpClients, but I guess I'm expecting to see a more graceful end in my TcpCleints which I am not.To wit, I'm expecting to end up hitting
client.Close and then get the "Client disconnected" message, which isn't happening.