The "End of Stream" error occurs when the server stops running. that is your on a server and the person running the server stops it/turns it off.
I'm not a server host but I think you ahve to input this command:
Black, what you just said is 50% false,
Not long ago, i made a mine craft LAN server and it wouldn't let my friend join after a playing for a while.
What works is deleting their .dat file in the players folder, trust me it works