[QA] McAfee Webgateway causes a 60 seconds delay on each upload
Seen while testing files_antivirus 1.1.0-rc.3
- Configure a McAfee Webgateway backend using #500
- Upload a small text file with less than 100 bytes.
- If infected, the upload is rejected immediately
- If clean, the upload hangs in "Processing files ..." for excatly 60 seconds. BAD.
Configure ClamAV or Fortinet: No such delay. Clean uploads succeed immediately.
Expected behavior: McAfee Webgateway shows similar throughput as ClamAV or Fortinet.
As it is a very consistent 60..61 sec delay, I'd assume the ICAP protocol is not terminated correctly in the McAfee case, and we wait for a socket timeout.
Probably introduced by https://github.com/owncloud/files_antivirus/pull/445, thus it is not a regression.
- If clean, the upload hangs in "Processing files ..." for excatly 60 seconds. BAD.
For me, after processing is finished, the file is not showing. Looking into the owncloud data folder I see the following:
root@oc10-hostname:/path/to/owncloud/data/ocadmin/files# ls -al
total 4424
drwxr-xr-x 5 www-data www-data 4096 Feb 6 14:00 .
drwxr-xr-x 9 www-data www-data 4096 Jan 12 12:29 ..
[...]
-rw-r--r-- 1 www-data www-data 56354 Feb 6 14:00 'Screen Shot 2023-02-03 at 08.03.12.png.ocTransferId794252077.part'
[...]
Waiting even longer, reloading the original tab where file was uploaded several times, the file does not appear.
However 1-2 Minutes after end of Processing...:
root@oc10-hostname:/path/to/owncloud/data/ocadmin/files# ls -al
total 4424
drwxr-xr-x 5 www-data www-data 4096 Feb 6 14:02 .
drwxr-xr-x 9 www-data www-data 4096 Jan 12 12:29 ..
[...]
-rw-r--r-- 1 www-data www-data 56354 Feb 3 07:03 'Screen Shot 2023-02-03 at 08.03.12.png'
[...]
And then I guess once another file scan runs the file appears in the web interface.
Fixed by #538
Closing after release. Please reopen, if something was missed.