Non-blocking sockets seems to fix issue with no data being recieved by the client