Added read timeout to socket