AWS::S3 connection timeout

This morning our servers were having problems uploading photos to Amazon S3. After poking around a bit, I discovered that the connections were only sporadically failing- most of the time they worked, but the few that were not tied up all the available processes.

Unfortunately the aws/s3 gem does not allow you to specify timeouts as options, so I had to hack up the gem source code itself. I added to the create_connection method in /usr/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/connection.rb


http.open_timeout = 1
http.read_timeout = 5

That seems to have cleared things up for now.

8 thoughts on “AWS::S3 connection timeout

  1. Hii Jim young suddenly my iPhone was stucked at apple logo after restart as battery gone so I updated the os and restore it now ffm is not available In app store I can’t live without ffm please do listen Jim young..

  2. Hii Jim young suddenly my iPhone was stucked at apple logo after restart as battery gone so I updated the os and restore it now ffm is not available In app store I can’t live without ffm please do listen Jim young..

  3. finally i had to google you, its been whole month since i am blocked from chat lobby due to unknown reasons, i tried to ask on chat lobby feedback, no reply from them i mailed them thrice. kindly have a appropriate reporting system on chat lobby and improve your feedback and most importantly unblock me my is itshothere

  4. Hi Jim Young, FFM wont work anymore and i was in the middle of talking to my new friends I made. Please Jim bring back FFM and make it work again. it was such a great app and its annoying that i cant talk to my friends. Please Fix This Jim!!!

  5. Hey jim young ive been using chat lobby and ffm but about a week ago my wifi cut out wen it came back ffm and chat lobby are gone please fix em and bring em back

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s