call IO.select([sock]) if sock is not ready.