removed the timeout from the long-polling function