LP#1774448 Auth poll spam/timing repairs user/berick/lp1774448-auth-poll-spam
authorBill Erickson <berickxx@gmail.com>
Thu, 31 May 2018 19:12:55 +0000 (15:12 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 31 May 2018 19:12:57 +0000 (15:12 -0400)
commitcd59109fb05ddc80bbb93ca019376c4e0077d0d7
treebfc272864293b63c697a7fae0c83f12d005f402b
parent55d62d4973e02f674a223e706b879bcc19058baa
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>
Open-ILS/web/js/ui/default/staff/services/auth.js