6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/17/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#12588] Activesync Ping Request Limit
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ .__..__ . .. . [__)[__][ __|__||\ | | | |[_./| || \|
Comment
> We already have code that does this. See: > Horde_ActiveSync_Collections::pollForChanges(). We store the starting > timestamp of each PING or Heartbeat SYNC request in the syncCache, > then on each iteration of the PING/SYNC loop we verify that the > timestamp of the currently running sync is not older than the > timestamp stored in the syncCache (which would indicate another PING > process has started). With this code, there should never be more than > 2 running PING requests at anytime, and the older request should > detect that it's stale and die. > > If this is not working for you, I would need to see the synclog > covering the requests that this is failing for. > > FWIW I wanted to use a semaphore to monitor this, but the shared > memory functions in PHP needed to do this are not present on every > system. Horde_Cache could be used, but there is no guarantee that one > is available. At some point, I'll probably end up sniffing out the > available capabilities then fall back to the syncCache method though > this will add complexity.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers