If you call the code without a pause several times, then the data from the last call gets into the socket.
_text="...";//Некие текстовые данные byte[] data = new byte[_text.Length]; data = Encoding.UTF8.GetBytes(_text); _socket.Send(data) How to avoid it without slowing down the flow through
Thread.Sleep(1000);
data = Encoding.UTF8.GetBytes(data);- is it generally compiled? Show your real code. - VladDbyte[] datayou have a local variable, or field? Give a problem reproducing example. The minimum reproducible example is VladD