The current timeout is 10 seconds:
https://github.com/cloudfoundry/java-buildpack/blob/master/lib/java_buildpack/util/cache/download_cache.rb#L113
This can cause issues on machines with bad internet connections. The default Ruby read timeout is a minute:
http://ruby-doc.org/stdlib-2.1.1/libdoc/net/http/rdoc/Net/HTTP.html
We tested increasing it to a minute and this solved our problem.
Thanks,
@tlabeeuw + @weymanf
The current timeout is 10 seconds:
https://github.com/cloudfoundry/java-buildpack/blob/master/lib/java_buildpack/util/cache/download_cache.rb#L113
This can cause issues on machines with bad internet connections. The default Ruby read timeout is a minute:
http://ruby-doc.org/stdlib-2.1.1/libdoc/net/http/rdoc/Net/HTTP.html
We tested increasing it to a minute and this solved our problem.
Thanks,
@tlabeeuw + @weymanf