From: Bill Erickson Date: Fri, 31 Aug 2012 13:59:58 +0000 (-0400) Subject: URLVerify.pm; response throttling repairs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=830d3427962bf390c7987ae7ff6a0461d91a8496;p=evergreen%2Fequinox.git URLVerify.pm; response throttling repairs Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/URLVerify.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/URLVerify.pm index 4e86dcd35e..4318ac067f 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/URLVerify.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/URLVerify.pm @@ -15,6 +15,7 @@ __PACKAGE__->register_method( method => 'validate_session', api_name => 'open-ils.url_verify.session.validate', stream => 1, + max_chunk_size => 0, signature => { desc => q/ Performs verification on all (or a subset of the) URLs within the requested session. @@ -184,16 +185,17 @@ sub validate_session { $num_processed++; if ($options->{report_all} or ($num_processed % $resp_window == 0)) { + $client->respond({ url_count => $url_count, current_verification => $content, total_processed => $num_processed }); - } - # start off responding quickly, then throttle - # back to only relaying every 256 messages. - $resp_window *= 2 unless $resp_window == 256; + # start off responding quickly, then throttle + # back to only relaying every 256 messages. + $resp_window *= 2 unless $resp_window == 256; + } } } },