Ohai Chef
I am trying to download around 500 MB file using remote_file resource but due to network latency, the package is not getting downloaded and I get timeout error.
Is there a way by which I can increase the timeout of remote_file resource to one hour?
What is the default timeout of remote_file resource?
Regards
Manish Mehra
spuder
July 25, 2017, 9:36pm
2
I don’t believe there is a timeout on the client side. Searching the remote_file resource and also common functionality does not show a timeout.
It is possible that the server is closing the connection. Do you control the server?
remote_file source
#
# Author:: Adam Jacob (<adam@chef.io>)
# Author:: Seth Chisamore (<schisamo@chef.io>)
# Copyright:: Copyright 2008-2016, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
require "uri"
This file has been truncated. show original