marcel / aws-s3

AWS-S3 is a Ruby implementation of Amazon's S3 REST API
http://amazon.rubyforge.org
MIT License
774 stars 461 forks source link

Rails + aws-s3 : AWS::S3::Base.establish_connection! just once or before every s3 operation ? #94

Open letronje opened 10 years ago

letronje commented 10 years ago

In the context of a rails application, is it best to perform an establish_connection! in an initializer ? or is that required before every s3 api call ? Eyeballing the code tells me that I've got to do it just once but just wanted to be sure that I can keep on make s3 calls via this gem without any timeouts/other-issues after one establish_connection! call in the very beginning.