'MySQL server has gone away' Part 2: session timeout
MySQL server has gone away, part 3: net_write_timeout. I wish there was a comprehensive checklist of possible reasons of this 'gone away' error.
An informative entry in MySQL log ("session dropped because of interactive_timeout") would also be nice, but let's not get over ourselves.