TCP is flow oriented. If the protocol is unknown, the server may try to read in a byte array (if memory is not a problem) or a file stream. If the client disconnects normally, the data is "completed". Unfortunately, if the protocol is unknown, the server cannot report that the client is dead or disconnected normally.
InputBufferIsEmpty , , (TCP) - , , .
"" , . , - "escape" ..