I am experiencing this same problem. I have my client-idle-timeout set
to 3600, but that makes little difference. Apple devices are the worst.
They will disconnect after only about 2 minutes of inactivity. I believe
the device itself is shutting down...