I have a socket connection between client and server. I am able to connect and send data but it keeps repeating the same data instead of stopping/pausing after reading a line.