Repository: buildr
Updated Branches:
  refs/heads/master 9531ba52d -> bc35b8df4


Increase the read timeout to 10 minutes when uploading maven artifacts


Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/bc35b8df
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/bc35b8df
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/bc35b8df

Branch: refs/heads/master
Commit: bc35b8df45695bf0eb9d9f480f99702dc6becdcd
Parents: 9531ba5
Author: Peter Donald <pe...@realityforge.org>
Authored: Tue Apr 17 13:53:11 2018 +1000
Committer: Peter Donald <pe...@realityforge.org>
Committed: Tue Apr 17 13:53:11 2018 +1000

----------------------------------------------------------------------
 CHANGELOG                     | 5 +++++
 lib/buildr/core/transports.rb | 1 +
 2 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/bc35b8df/CHANGELOG
----------------------------------------------------------------------
diff --git a/CHANGELOG b/CHANGELOG
index 99f48b1..e1018e1 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -30,6 +30,11 @@
 * Added:  Add support for sha512 digests to be generated for files during the 
upload. This is typically
           configured by adding `sha512` to the list of digests via a line such 
as:
           `repositories.release_to[:options] = {:digests => [:md5, :sha1, 
:sha512]}`
+* Fixed:  The default upload tasks would often get a ReadTimeout when 
uploading using http to a remote
+          server that did not have `KeepAlive` socket option enabled and the 
upload took more than 60
+          seconds (the default socket read timeout). Some commercial maven 
repositories could trigger
+          this scenario during upload of even modest size artifacts. Default 
the read_timeout to 10 minutes
+          when during upload to work address this issue.
 
 1.5.5 (2017-12-06)
 * Fixed:  The concatenation extension released as part of 1.5.4 changed the 
way zip archives were

http://git-wip-us.apache.org/repos/asf/buildr/blob/bc35b8df/lib/buildr/core/transports.rb
----------------------------------------------------------------------
diff --git a/lib/buildr/core/transports.rb b/lib/buildr/core/transports.rb
index f41bd4d..e9dd00f 100644
--- a/lib/buildr/core/transports.rb
+++ b/lib/buildr/core/transports.rb
@@ -327,6 +327,7 @@ module URI
     def write_internal(options, &block) #:nodoc:
       options ||= {}
       connect do |http|
+        http.read_timeout = 500
         trace "Uploading to #{path}"
         content = StringIO.new
         while chunk = yield(RW_CHUNK_SIZE)

Reply via email to