The connection was reset


Firefox sometimes shows “The connection was reset. The connection to
the server was reset while the page was loading.” while uploading
files. Below are the details of the server.

OS: Gentoo
Webserver: nginx ( mongrel cluster )
File to Upload: 4mb avi file.
We used attachment_fu using processor Rmagick

Please Help.