flexera-public / right_aws

RightScale Amazon Web Services Ruby Gems
MIT License
451 stars 175 forks source link

"End of File Reached" with Upgrade to Ruby 1.9.3 #170

Open neilchaudhuri opened 11 years ago

neilchaudhuri commented 11 years ago

Using Ruby 1.9.3p385 I am using right_aws to access S3 as follows:

s3 = RightAws::S3.new(ENV['S3_KEY_ID'], ENV['S3_ACCESS_KEY'], {:multi_thread => true}) bucket = s3.bucket(bucket_name) keys = bucket.keys({'prefix' => "#{folder}/"}, true)

When I do this I get the following:

New RightAws::S3Interface using shared connections mode Closing HTTPS connection to s3.amazonaws.com:443, reason: 'end of file reached' Rightscale::HttpConnection : server s3.amazonaws.com closed connection Opening new HTTPS connection to s3.amazonaws.com:443

This is new since I upgraded from Ruby 1.9.2. The opening and closing of connections is really slowing things down.

Can anyone point me to what I need to do to fix the problem?

Thanks.

neilchaudhuri commented 11 years ago

By the way, I am finding this only occurs intermittently. Thanks again.

biggeektx commented 8 years ago

I know this is two years old, but is there any update on this? I'm seeing this issue in my logs as well.