long polling working as intended