I'm still fairly new to coding.
I made a simple client server following a tutorial using "NETWORKSAPI LIBRARY".
When a client is forcibly closed, due to crash / hang or even unplug internet. The server hangs and gives this error:
Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.
What can I do, so the server doesn't hang or crash because of a client hang?
The exception comes up on a line where I have a infinite loop sending messages to the client.