Page 1 of 1

flock in NFS environment

Posted: 16 Mar 2010, 13:38
by widechar
Hello

We use mantis a lot. Great software. Thanks.

Since upgrading to latest stable (1.2.0) we observe a lot of "hanging" php processes. We could track it down to locked filehandles in library/nusoap/class.wsdlcache.php and library/adodb/adodb-csvlib.inc.php. Mantis is installed in a shared hosting environment which uses NFS for storage (required due to switching the webserver on failure or some..). However, mantis uses LOCK_EX, which should not be used in a NFS (nor any NAS) environment: http://www.php.net/manual/en/function.flock.php#82521

Any help would be appreciated.

Thanks
Roger

Re: flock in NFS environment

Posted: 16 Mar 2010, 21:39
by atrol
At first sight I see no difference between 1.1.8 and 1.2.0 concerning use of flock.
There must be another change in 1.2.0 which causes your problem.