Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
neilchaudhuri opened this issue Jun 22, 2013 · 2 comments
Open

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

neilchaudhuri opened this issue Jun 22, 2013 · 2 comments

Comments

@neilchaudhuri
Copy link

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
Copy link
Author

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

@biggeektx
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants