moumar/ruby-audioinfo — Issue #2: Interferes with database connection when used with Rails
Author: malomalo
Created: 2011-11-08 04:38:51+00:00
State: open

Not sure how but when uploading a file to Rails and calling AudioInfo on the uploaded file as a before_save hook to set the audio length in the database Rails will always throw the following error:

`Mysql2::Error: MySQL server has gone away: INSERT INTO.....`

gist of model and stack trace: https://gist.github.com/16a896402ce7747a6b65

Gems
--------
- rails 3.1.1
- paperclip 2.3.16
- aws-s3 0.6.2
- ruby-audioinfo 0.1.7
- mysql2 0.3.7
- therubyracer 0.9.8
- postmark-rails 0.4.1