S3, timeout connection on long put

138 views
Skip to first unread message

Danyal

unread,
May 9, 2011, 5:31:33 PM5/9/11
to ruby-aws
Hi,

I am using the aws gem to put objects to S3. I was wondering if there
is an easy way to timeout the connection if the put takes too long?
Sometimes S3 hiccups causing the put connection to stay active for >
10 min. Can I set a timeout so the connection dies after 10-20
seconds?

Thanks,
Danyal

Travis Reeder

unread,
May 9, 2011, 8:11:38 PM5/9/11
to ruby...@googlegroups.com
Not directly in the gem, but you could use Ruby's timeout:




--
You received this message because you are subscribed to the Google Groups "ruby-aws" group.
To post to this group, send email to ruby...@googlegroups.com.
To unsubscribe from this group, send email to ruby-aws+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ruby-aws?hl=en.


Danyal

unread,
May 10, 2011, 1:18:57 AM5/10/11
to ruby-aws
Thanks Travis!
Reply all
Reply to author
Forward
0 new messages