LP#1754164: fix gateway timeout when retrieving many shelving locations user/jeffdavis/lp1754164-copy-location-gateway-timeout
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Thu, 15 Mar 2018 17:37:31 +0000 (10:37 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Thu, 15 Mar 2018 17:42:06 +0000 (10:42 -0700)
commit0a6dc1b7c0e37c6293b394efe993b47ffcc10b47
treea9674aaa72ee522483447ce16f494b81c826fb54
parentadf98e50e05f4f923d03e276b6608c56eff17708
LP#1754164: fix gateway timeout when retrieving many shelving locations

A call to open-ils.circ.copy_location.retrieve.all via the gateway can
fail with a large number of shelving locations.  The API call succeeds,
but the gateway reports a timeout and returns null.  Streaming the
response seems to fix the problem.  Thanks to Dan Wells for providing an
example to copy in LP#1756142.

Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CopyLocations.pm