rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: yhm_7 on August 21, 2007, 10:49:29 AM

Title: "addresses ever connected" store in hfs.ini
Post by: yhm_7 on August 21, 2007, 10:49:29 AM
After hfs running about one week,The amount of "addresses ever connected" will be very large,maybe more than 2000.

This make hfs.ini too fat.  I Think that the ip addresses stored at a single txt file will be fine.
Title: Re: "addresses ever connected" store in hfs.ini
Post by: TSG on August 21, 2007, 10:56:06 AM
I assume you get ALOT of hits on your HFS :P i have 398 addresses ever connected... Its a good point...By fat, how fat do you mean? i think a few megabytes is ok for the list... if it ever gets that large :P but if this is the case, an external text file might be best.
Title: Re: "addresses ever connected" store in hfs.ini
Post by: rejetto on August 21, 2007, 11:00:52 AM
i must admin i didn't consider this fact that much. but i will do now.
the list should be 50kb for few thousands addresses.
can you explain better why is this a problem? is it slowing slowing HFS down at start?
Title: Re: "addresses ever connected" store in hfs.ini
Post by: yhm_7 on August 21, 2007, 03:55:56 PM
  :)Up till now,I havn't thought this is a problem.

I just think that the use of hfs.ini is store the config.  The function to store ip addresses isn't suitable for ini file.

So I want those ip addresses to store in a single file.

Or add a option to disable this fountion(show,count,store ip address).

Sometimes I needn't it  because PC has few memory, cpu and I prefer to have a lite hfs.
Title: Re: "addresses ever connected" store in hfs.ini
Post by: yhm_7 on September 26, 2007, 06:18:44 PM
file hits is store in  .vfs

virture file system is not often changed. Generally hfs just read it at startup.
file hits just like a log, it changed frequently as user's http request.

I think they are two kinds things. one is still and one is frequently changed.one is important and one is temporary.

And if adding many html page with picture, sizeof file hits will become big,because that's not only a number of hits,it include file path.
Mayby 100 pages with 300 pics,they will make 400 lines in .VFS.

So I still Suggest adding a option to disable file hits,or separate vfs and file hits  into two files.

Title: Re: "addresses ever connected" store in hfs.ini
Post by: rejetto on September 27, 2007, 11:46:44 AM
you didn't describe a problem, but a situation. what's the problem?
Title: Re: "addresses ever connected" store in hfs.ini
Post by: Foggy on September 27, 2007, 01:32:43 PM
I understand what you mean but I do not see any problem with that because after all the .vfs file is intended to store information about the Virtual File System.

If you are unhappy with it taking up too much space in the vfs then maybe once a week you clear the file hits?
Title: Re: "addresses ever connected" store in hfs.ini
Post by: yhm_7 on September 27, 2007, 01:36:55 PM
Not a problem,just a suggestion.
Title: Re: "addresses ever connected" store in hfs.ini
Post by: rejetto on September 27, 2007, 02:01:16 PM
One of the quickest ways to break something is to fix it when it ain't broken.