Looking for tips on identifying reason behind random client disconnects
This is utilizing UNet networking
Originally I had issues with a network message feedback loop causing clients to disconnect due to seemingly an overflow of network pipe data exceeding some limit. The first error that would show up was "Attempt to send to not connected connection {1}"
Followed by "Failed to send internal buffer..." "Send Error: Wrong Connection ... " etc
The point is that the client was just dropping without any error message occurring. After fixing that issue by monitoring the network profile graph and seeing the buffer grow and grow the client and server are able to play for much longer. The network data stabilizes at something around 100 bytes.
Occasionally the client will still drop in the same way. But I am not sure how best to identify the reason. is there some callback or event when client disconnects that can provide an error code or other clue?