Description
Symfony version(s) affected
6
Description
Hi I am using Symfony 6 and PHP 8.1.4
I share the project over SMB on Windows and mount the project on Linux, but I run into a problem when running the project, accessing the project keeps waiting until it times out; this only happens on SMB shared directories, running locally when everything works.
How can I get the project to work properly on an SMB shared folder?
English is not my native language; please excuse typing errors.
How to reproduce
Share the project folder via SMB on Windows10, mount the shared folder in Linux (Debian11) and run it
Mount command: mount -o uid=1000,gid=1000,username=qsz,password=123456,rsize=1048576,wsize=1048576 -t cifs //192.1 68.100.1/Web/mnt/web/
Possible Solution
After investigation, it is found that when the program executes this code under the vendor\symfony\http-kernel\Kernel.php file, it will always get stuck
Try adding flock($lock, \LOCK_UN);
before if (!flock($lock, $wouldBlock ? \LOCK_SH : \LOCK_EX)) {
and the program works fine
Additional Context
No response