files_antivirus icon indicating copy to clipboard operation
files_antivirus copied to clipboard

[QA] McAfee Webgateway causes a 60 seconds delay on each upload

Open jnweiger opened this issue 3 years ago • 4 comments

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.

jnweiger avatar Aug 09 '22 14:08 jnweiger

Probably introduced by https://github.com/owncloud/files_antivirus/pull/445, thus it is not a regression.

jnweiger avatar Aug 09 '22 14:08 jnweiger

  • 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.

enbrnz avatar Feb 06 '23 14:02 enbrnz

Fixed by #538

jnweiger avatar Jun 12 '23 22:06 jnweiger

Closing after release. Please reopen, if something was missed.

jnweiger avatar Jun 27 '23 14:06 jnweiger