rejetto forum

Software => HFS ~ HTTP File Server => Bug reports => Topic started by: zemo on March 22, 2015, 10:34:51 PM

Title: hfs hangs on access
Post by: zemo on March 22, 2015, 10:34:51 PM
Hello,

hfs seems to hang when it finds big MD5 checksum files. I have two checksum files with 220.000 lines each. When a client tries to access hfs it just hangs. The process monitor from sysinternals show that hfs tries to access the MD5 file (see attachment). After accessing the first checksum file hfs hangs. Disabling fingerprints or recursive listings doesn't make a difference.

Best regards,
Zemo


Title: Re: hfs hangs on access
Post by: Mars on March 22, 2015, 11:36:04 PM
using the built-md5 generator in hfs can make this one unstable if the files are too numerous or impressive sizes, it is possible to perform against this work with a macro exec using an external program such as

https://www.fourmilab.ch/md5/

Title: Re: hfs hangs on access
Post by: zemo on March 23, 2015, 03:23:35 PM
I don't even use the fingerprint feature in HFS (it's disabled) and I also don't want to use it in this case. HFS just found the big existing MD5 files and stopped working. The MD5 files are in the root directory of drive D: and HFS is installed in a subdirectory and the shared files are even on a different drive.

What I don't understand is, why is HFS reading the MD5 files even when the fingerprints are disabled. Furthermore when the fingerprints are enabled HFS shouldn't hang. And why does it look in the root directory of drive D: although program and the shared files are in different directories/drives.
Title: Re: hfs hangs on access
Post by: rejetto on March 24, 2015, 11:30:53 PM
wow, sounds very strange :D
luckily your description was clear and i quickly reproduced the problem.
There are actually 2 bugs:

the first is that the md5 can be loaded even if it's disabled
(just for the sake of curiosity: in the sources is the line with hasher.loadFrom(folder.resource); without any condition to check the option)

the other is on the same line, and it's that it access folder.resource even when the folder is virtual, and thus the resource is nothing, and that's what's causing it to access the root :)

I just released a new version. I hope it solves your problem.
http://www.rejetto.com/forum/hfs-~-http-file-server/new-version-2-3e/
Title: Re: hfs hangs on access
Post by: zemo on March 27, 2015, 07:28:26 PM
Quote
I just released a new version. I hope it solves your problem.

Yes, it works perfectly now. Thanks a lot!!!   :)