Looks like I wasn't sending the end of line character from the client to the server. The server thought it didn't get all the information so it kept on trying to read from the socket. I need to fix some things with the server, some bugs were uncovered debugging this other problem haha.