aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/definitions/openid_token.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-12 20:29:46 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-12 20:29:46 +0200
commitb1071cf34b86685c3cdb5004d6112881966a7ce6 (patch)
treedb55bfb3a906ef6152bcfa61aef16a3a09e6e911 /lib/csapi/definitions/openid_token.h
parentebdb2ba9d15e6cdfb1458e7895032afd641aafe3 (diff)
downloadlibquotient-b1071cf34b86685c3cdb5004d6112881966a7ce6.tar.gz
libquotient-b1071cf34b86685c3cdb5004d6112881966a7ce6.zip
Connection::syncLoop: give a pause between syncs
As it's observed now, Synapse responds almost immediately on /sync requests - even if there are no events to return. This downgrades long-polling to simply polling, and since clients don't expect it, polling loops become pretty violent. To alleviate that somehow, syncLoop now accepts the second parameter, msecBetween (500 msecs by default), to configure waiting between the previous sync response and the next sync request. This is only for syncLoop(); Connection::sync() fires instantly, as before.
Diffstat (limited to 'lib/csapi/definitions/openid_token.h')
0 files changed, 0 insertions, 0 deletions