fix long polling problem in time client/server