Has ability to read from a socket, server stops if no message in socket, commented out so server works normally.