Solving the Comet timeout problem