I have been battling with this problem for quite a while now. This issue comes up randomly while using Magento (and everytime while I run stock management script for it which should run quite a while). Seems there's some setting for fastcgi which limits the time but I have tried to change every possible limit in PHP.INI (yes I change the correct one) and virtualmin backend website options for the site to unlimited so I'm completely out of ideas what to do anymore. All I can find from logs is:
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server.
That is all.
Any ideas what could cause this and what I could try to solve the problem?