LP#1774448 Auth poll spam/timing repairs
authorBill Erickson <berickxx@gmail.com>
Thu, 31 May 2018 19:12:55 +0000 (15:12 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 22 Aug 2018 18:05:29 +0000 (14:05 -0400)
commit88caf53dfd4e477ba1a4983dffc073b91acb27cb
tree54326f649fafa9300a4b89a527e7264f1e55b948
parent1d35e8ed2772e659fb706c73270bd8ee7bc4c3e4
LP#1774448 Auth poll spam/timing repairs

Avoid spamming the server with authentication session checks on bad poll
time values.  Specifically, never poll more often than once per minute
and avoid integer overflow on long authentication timeout values
(greater than about 24.8 days) resulting in the poll running with an
effective timeout of zero and spamming the server with API calls.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Open-ILS/web/js/ui/default/staff/services/auth.js