LP#1774448 Auth poll spam/timing repairs user/jboyer/lp1774448-auth-poll-spam-signoff
authorBill Erickson <berickxx@gmail.com>
Thu, 31 May 2018 19:12:55 +0000 (15:12 -0400)
committerJason Boyer <jboyer@library.in.gov>
Wed, 22 Aug 2018 15:29:26 +0000 (11:29 -0400)
commita072ca90de5307fee60544426a5bca8b63b747bc
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>
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Open-ILS/web/js/ui/default/staff/services/auth.js