Map data pull over brick's nginx: X-Accel-Buffering: no on map files (buffered, nginx's 1 GB temp file cap ended every bigger download there); each attempt resumes from the part on disk (curl's --retry kept its first offset); a file that can't be written is skipped, not the whole run
This commit is contained in:
1 parent
62045be0f7
commit
5c023619ec
2 files changed
+21
-9
No files matched your search
@@ -921,6 +921,10 @@ module Maptool
|
||||
get "/api/sync/maps/file" do
|
||||
require_sync_token!
|
||||
path = App.map_sync_files[params[:path].to_s] or halt 404
|
||||
# Straight through brick's nginx: buffered, it spools the response to
|
||||
# a temp file capped at 1 GB (proxy_max_temp_file_size) and a bigger
|
||||
# file's download ended there.
|
||||
headers "X-Accel-Buffering" => "no"
|
||||
send_file path
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user