def make_sync_request response, &read_block
retry_server_errors do
response.http_response = Http::Response.new
@http_handler.handle(
response.http_request,
response.http_response,
&read_block)
if
block_given? and
response.http_response.status < 300 and
response.http_response.body
then
msg = ":http_handler read the entire http response body into "
msg << "memory, it should have instead yielded chunks"
log_warning(msg)
yield(response.http_response.body)
end
populate_error(response)
response.signal_success unless response.error
response
end
end