rejetto forum

Software => HFS ~ HTTP File Server => Bug reports => Topic started by: radiodj105 on July 07, 2020, 06:01:14 PM

Title: Icons sometimes are hidden
Post by: radiodj105 on July 07, 2020, 06:01:14 PM
Hi there.
I hope you are all fine.

I have noticed that on both HFS Servers (I have installed) with different routers and IPs... something strange happens.
The icons (before the folder names) are missing.
If I press F5, some of them are appeared again.
If I press f5 again, Other appears and other don't.

Do you have something to suggest me?
If someone wants, I can give him the two server-ip to test it.

Thanks for your time.
Title: Re: Icons sometimes are hidden
Post by: rejetto on July 08, 2020, 03:13:11 PM
hi! did you set a limit on the number of connections in HFS ?
Title: Re: Icons sometimes are hidden
Post by: radiodj105 on July 08, 2020, 03:28:13 PM
Well yes but the number of the limit for almost all the values is 10.
Title: Re: Icons sometimes are hidden
Post by: rejetto on July 08, 2020, 03:43:13 PM
browsers don't handle well this kind of limits
Title: Re: Icons sometimes are hidden
Post by: Mars on July 08, 2020, 04:16:12 PM
in the same idea that we use a session cookie with a unique value to limit the connection time over time,
why not use a token system associated with the loaded web page generated to current user and generated for the current user (ident or  ip) and cached, whose value changes with each main page request or when a requested resource does not send the correct tocken
this token added to the headers orin url  would be used for any resource depending on it would not count these resources as additional connections

example
   <link rel="shortcut icon" href="/favicon.ico?token=%token%">
   <link rel="stylesheet" href="/?mode=section&id=style.css&token=%token%" type="text/css">
 <script type="text/javascript" src="/?mode=jquery&token=%token%"></script>

another solution would be to not count the connections for certain recurring resources which are cached in the browser, but only the main requests

it is always possible to reduce the number of requests by replacing the web links with their equivalent in sections, but this risks partially overloading the content of the pages.

example
   <link rel="stylesheet" href="/?mode=section&id=style.css" type="text/css">
replaced by
<style>{.$style.css.}</style>
Title: Re: Icons sometimes are hidden
Post by: radiodj105 on July 08, 2020, 08:08:55 PM
First I would like to thank all for the help.

And yes, the problem was the limit.

When I choose "2" on "Max Connections from Single address" the problem became worst.
When I left it blank, everything goes fine.

Thanks again, all of you for your time, on my problem,
I really appreciate that.
Title: Re: Icons sometimes are hidden
Post by: rejetto on July 09, 2020, 10:05:37 AM
@mars, that would be some attempt at limitation but not a "limit on the number of connections"