Hello list,

Is highly likely i forgot to commit this "piece of work" to remote_fetcher.

Basically is a workaround on Windows when remote connections are been
closed because they don't support or want Keep-Alive mode.

During installation on big gems you find this problem.

--- lib/rubygems/remote_fetcher.rb      2008-03-28 22:46:51 +0000
+++ lib/rubygems/remote_fetcher.rb      2008-03-30 15:13:21 +0000
@@ -236,11 +236,13 @@
       request.add_field 'Keep-Alive', '30'

       # HACK work around EOFError bug in Net::HTTP
+      # NOTE Errno::ECONNABORTED raised a lot on Windows, and make impossible
+      # to install gems.
       retried = false
       begin
         @requests[connection_id] += 1
         response = connection.request(request)
-      rescue EOFError
+      rescue EOFError, Errno::ECONNABORTED
         requests = @requests[connection_id]
         say "connection reset after #{requests} requests, retrying" if
           Gem.configuration.really_verbose

I've committed this change.

BTW, what is the RubyGems release schedule? I keep asking it, but it
seems there isn't one :-P

Good weekend everybody,
-- 
Luis Lavena
Multimedia systems
-
Human beings, who are almost unique in having the ability to learn from
the experience of others, are also remarkable for their apparent
disinclination to do so.
Douglas Adams
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to