rejetto forum

HFS stops receiving connections until program restarted

0 Members and 1 Guest are viewing this topic.

Offline amolina

  • Occasional poster
  • *
    • Posts: 1
    • View Profile
Hello,

I've been having issues with HFS as of lately, and need help to sort it out. Almost daily server stops receiving connections without any error displaying or anything alike. Version is 2.3m. I only have to restart the application and it starts working ok until it "crashes" again.

I have HFS as an http server for some users to get some files automatically. there should be around 1 to 5 requests to the server per second, and they are usually served without issues, but for some reason after some time, those request are not even seen in the log screen, and files are not being received by users. After application is restarted then I start seeing request and responses again with current time stamps.


Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 115
  • Computer brained boy
    • View Profile
Actually your problem is usual among all HFS users.

You can try danny's WatchDog/WatchCat to keep HFS alive ;)
They're useful to such kind of problem.
Had some psychiatry problem and resting in home... I may need your help... So play with me? :D
Check out my template ;)


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2005
    • View Profile

I did not look into the question, but under the conditions mentioned is it necessary in this case to kill the HFS process or is the interface still functional?
 use the F4 key to stop and restart the server part is it sufficient to resolve?
 it in the log then there should be lines which inform of the change of state --> in this case are the remote connections operational again?

to check that the program continues to react despite the fact that remote connections are no longer possible, just add an event in hfs.events file to write to the log,

[every 10 min]
{.add to log |% timestamp%.}

- if hfs gets stuck, it will be easy to determine for how long, within 10 minutes

- if the blocking does not cause the crash of hfs, and a STOP/START using F4 is sufficient, it is also possible by an event to force it automatically if no external  request is made in a given time interval

my response to come depending on what your observations will give


Offline NaitLee

  • Tireless poster
  • ****
    • Posts: 115
  • Computer brained boy
    • View Profile
Because I've also met this problem several times, I can give some details. :)

This problem happens when there are many connections (requests?) received by HFS and/or the network flow is too much, then HFS' network function "stopped working".

use the F4 key to stop and restart the server part is it sufficient to resolve?
 it in the log then there should be lines which inform of the change of state --> in this case are the remote connections operational again?

The answer is Yes. The HFS UI is still alive, the only thing doesn't work is the network function -- No one can connect to that HFS site.
And switching F4 can solve the problem manually.
Had some psychiatry problem and resting in home... I may need your help... So play with me? :D
Check out my template ;)


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 729
  • Status: On hiatus (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
to check that the program continues to react despite the fact that remote connections are no longer possible, just add an event in hfs.events file to write to the log
Very smart idea! 8) And this gives me another one idea: how about "add to log" every 10 seconds the number of active connections?. This will give us a more 'close' detail of the limit before it crash.
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2005
    • View Profile
hfs.events

[every 10]
{.add to log|%connections%.}

the timing is not very precise, it is necessary to take into account an offset and to put 9 instead of 10 is preferable

look at http://www.rejetto.com/wiki/index.php?title=HFS:_Template_symbols

we must be careful that during the processing of such an event hfs does nothing else which can slow down its operation on its other tasks
« Last Edit: October 09, 2020, 01:45:11 PM by Mars »