We found that uploading large files to S3 would result in a socket error ("connection reset by peer") occasionally and lately much more consistently. In researching this I saw that many people got this error when uploading too large of a file without multipart chunking. I would have assumed fog did this automatically but the default chunk size may be too high. In order to address this I wanted to drop the chunk size to 100MB. Rather than hard-code this I opted to expose a `fog_option` configuration option that lets me pass any additional options I want to the fog's `#create` call. This is similar to the `fog_attributes` option implemented in CarrierWave which [addresses the same problem](http://stackoverflow.com/a/11867978/201911). We've been running this now for a week in production and it seems to resolve the issue. https://github.com/thoughtbot/paperclip/pull/2135
Name |
Last commit
|
Last Update |
---|---|---|
.. | ||
interpolations | Loading commit data... | |
io_adapters | Loading commit data... | |
locales | Loading commit data... | |
matchers | Loading commit data... | |
storage | Loading commit data... | |
validators | Loading commit data... | |
attachment.rb | Loading commit data... | |
attachment_registry.rb | Loading commit data... | |
callbacks.rb | Loading commit data... | |
content_type_detector.rb | Loading commit data... | |
errors.rb | Loading commit data... | |
file_command_content_type_detector.rb | Loading commit data... | |
filename_cleaner.rb | Loading commit data... | |
geometry.rb | Loading commit data... | |
geometry_detector_factory.rb | Loading commit data... | |
geometry_parser_factory.rb | Loading commit data... | |
glue.rb | Loading commit data... | |
has_attached_file.rb | Loading commit data... | |
helpers.rb | Loading commit data... | |
interpolations.rb | Loading commit data... | |
logger.rb | Loading commit data... | |
matchers.rb | Loading commit data... | |
media_type_spoof_detector.rb | Loading commit data... | |
missing_attachment_styles.rb | Loading commit data... | |
processor.rb | Loading commit data... | |
processor_helpers.rb | Loading commit data... | |
rails_environment.rb | Loading commit data... | |
railtie.rb | Loading commit data... | |
schema.rb | Loading commit data... | |
storage.rb | Loading commit data... | |
style.rb | Loading commit data... | |
tempfile.rb | Loading commit data... | |
tempfile_factory.rb | Loading commit data... | |
thumbnail.rb | Loading commit data... | |
url_generator.rb | Loading commit data... | |
validators.rb | Loading commit data... | |
version.rb | Loading commit data... |