timeout on readNext() to prevent deadlock