• Web Server Terminate

    From Mortifis@VERT/ALLEYCAT to All on Mon Sep 2 12:56:16 2019
    I noticed this morning that the Web Server terminate message in sbbsctrl web pane has been "Waiting for 1 child threads to terminate" ... it has been waiting for 5 days! I have noticed in the past that if I update a config the various servers recycle but wait for asll threads to terminate, so if a person has connected via http and goes away on vacation without closing their web browswer the web server will wait to recycle ... is there a way to change this behaviour?

    My doctor said I have the body of a 25 year old ... and the mind of a 10 :-/


    ... Could you continue your petty bickering? I find it most intriguing.

    ---
    ■ Synchronet ■ AlleyCat! BBS - http://alleycat.synchro.net:81
  • From Rampage@VERT/SESTAR to Mortifis on Mon Sep 2 12:31:43 2019
    Re: Web Server Terminate
    By: Mortifis to All on Mon Sep 02 2019 08:56:16


    I noticed this morning that the Web Server terminate message in sbbsctrl web pane has been "Waiting for 1 child threads to terminate" ... it has been waiting for 5 days! I have noticed in the past that if I update a
    config the various servers recycle but wait for asll threads to terminate, so if a person has connected via http and goes away on vacation without closing their web browswer the web server will wait to recycle ... is there
    a way to change this behaviour?

    the server should time out after a period... the problem would be if the client keeps refreshing the connection which will extend the timeout... it may be possible for you to force the server to terminate but that may leave some files in a locked/unstable condition...


    )\/(ark

    ---
    ■ Synchronet ■ The SouthEast Star Mail HUB - SESTAR
  • From MRO@VERT/BBSESINF to Rampage on Mon Sep 2 15:24:55 2019
    Re: Web Server Terminate
    By: Rampage to Mortifis on Mon Sep 02 2019 08:31 am

    Re: Web Server Terminate
    By: Mortifis to All on Mon Sep 02 2019 08:56:16


    I noticed this morning that the Web Server terminate message in sbbsctrl pane has been "Waiting for 1 child threads to terminate" ... it has been waiting for 5 days! I have noticed in the past that if I update a
    config the various servers recycle but wait for asll threads to terminate so if a person has connected via http and goes away on vacation without closing their web browswer the web server will wait to recycle ... is the a way to change this behaviour?

    the server should time out after a period... the problem would be if the cli keeps refreshing the connection which will extend the timeout... it may be possible for you to force the server to terminate but that may leave some fi in a locked/unstable condition...



    i have been running synchronet for almost 20 years. cant believe it's been that long. i use a script to kill synchronet a few times a day AND i reboot the host a few times a day. it's just to clean up any problems from doors, etc.
    ---
    ■ Synchronet ■ ::: BBSES.info - free BBS services :::
  • From Mortifis@VERT/ALLEYCAT to Rampage on Mon Sep 2 20:41:30 2019
    Re: Web Server Terminate
    By: Rampage to Mortifis on Mon Sep 02 2019 08:31 am

    the server should time out after a period... the problem would be if the cli keeps refreshing the connection which will extend the timeout... it may be possible for you to force the server to terminate but that may leave some fi in a locked/unstable condition...

    I would have thought, however

    8/27 02:39:39p Recycling server...
    8/27 02:39:41p Reading C:\sbbs\ctrl\sbbs.ini
    8/27 02:39:41p Synchronet Web Server Revision 1.697
    8/27 02:39:41p Compiled Aug 14 2019 05:04:37 with MSC 1921
    8/27 02:39:41p Initializing on Tue Aug 27 14:39:41 2019 with options: d3
    8/27 02:39:41p Loading configuration files from C:\sbbs\ctrl\
    8/27 02:39:43p Web Server listening on socket 0.0.0.0 port 81
    8/27 02:39:43p Web Server listening on socket :: port 81
    8/27 02:39:43p Secure Web Server listening on socket 0.0.0.0 port 443
    8/27 02:39:43p Secure Web Server listening on socket :: port 443
    8/27 02:39:43p Web Server thread started
    8/27 02:39:43p Recycle semaphore file (C:\sbbs\ctrl\sbbs.ini) detected
    8/27 02:39:43p Waiting for HTTP logging thread to terminate...
    8/27 02:39:43p HTTP logging thread started
    8/27 02:39:43p HTTP logging thread received NULL linked list log entry
    8/27 02:40:44p !TIMEOUT waiting for HTTP logging thread to terminate
    8/27 02:40:44p Done waiting for HTTP logging thread to terminate
    8/27 02:40:44p 0000 Waiting for 1 child threads to terminate
    9/2 08:13:27a Web Server terminate
    9/2 08:15:06a Web Server terminate
    9/2 08:59:36a Web Server terminate
    9/2 09:14:14a Web Server terminate
    9/2 09:18:47a Web Server terminate
    9/2 04:33:58p Web Server terminate

    The entries from 9/2 are me trying to force terminate the web server but it
    is neither stopping no recycling. I do not want to kill SBBS just recycle the web server.


    My doctor said I have the body of a 25 year old ... and the mind of a 10 :-/

    ---
    ■ Synchronet ■ AlleyCat! BBS - http://alleycat.synchro.net:81
  • From Gamgee@VERT/PALANT to MRO on Mon Sep 2 19:06:00 2019
    MRO wrote to Rampage <=-

    the server should time out after a period... the problem would be if the cli keeps refreshing the connection which will extend the timeout... it may be possible for you to force the server to terminate but that may leave some fi in a locked/unstable condition...

    i have been running synchronet for almost 20 years. cant believe
    it's been that long. i use a script to kill synchronet a few
    times a day AND i reboot the host a few times a day. it's just
    to clean up any problems from doors, etc.

    That seems ..... ridic^H^H^H^H^H excessive.

    Must be running under Windoze, I'd guess.


    ... Internal Error: The system has been taken over by sheep at line 19960
    --- MultiMail/Linux v0.52
    ■ Synchronet ■ Palantir BBS * palantirbbs.ddns.net * Pensacola, FL
  • From Digital Man@VERT to Mortifis on Mon Sep 2 22:56:57 2019
    Re: Web Server Terminate
    By: Mortifis to All on Mon Sep 02 2019 08:56 am

    I noticed this morning that the Web Server terminate message in sbbsctrl web pane has been "Waiting for 1 child threads to terminate" ... it has been waiting for 5 days! I have noticed in the past that if I update a config the various servers recycle but wait for asll threads to terminate, so if a person has connected via http and goes away on vacation without closing their web browswer the web server will wait to recycle ... is there a way to change this behaviour?

    It's an infinite wait, currently. I think the expectation was that an inactive client would be disconnected after the configured about of inactivity but with dynamically updating web pages, that may not happen. We should likely put a timeout or something to close the active client connections.

    digital man

    This Is Spinal Tap quote #40:
    Morty the Mime: Come on, don't talk back, mime is money, come on, move it. Norco, CA WX: 84.7°F, 43.0% humidity, 12 mph E wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Mortifis on Mon Sep 2 23:19:21 2019
    Re: Web Server Terminate
    By: Mortifis to Rampage on Mon Sep 02 2019 04:41 pm

    Re: Web Server Terminate
    By: Rampage to Mortifis on Mon Sep 02 2019 08:31 am

    the server should time out after a period... the problem would be if the cli keeps refreshing the connection which will extend the timeout... it may be possible for you to force the server to terminate but that may leave some fi in a locked/unstable condition...

    I would have thought, however

    8/27 02:39:39p Recycling server...
    8/27 02:39:41p Reading C:\sbbs\ctrl\sbbs.ini
    8/27 02:39:41p Synchronet Web Server Revision 1.697
    8/27 02:39:41p Compiled Aug 14 2019 05:04:37 with MSC 1921
    8/27 02:39:41p Initializing on Tue Aug 27 14:39:41 2019 with options: d3
    8/27 02:39:41p Loading configuration files from C:\sbbs\ctrl\
    8/27 02:39:43p Web Server listening on socket 0.0.0.0 port 81
    8/27 02:39:43p Web Server listening on socket :: port 81
    8/27 02:39:43p Secure Web Server listening on socket 0.0.0.0 port 443
    8/27 02:39:43p Secure Web Server listening on socket :: port 443
    8/27 02:39:43p Web Server thread started
    8/27 02:39:43p Recycle semaphore file (C:\sbbs\ctrl\sbbs.ini) detected
    8/27 02:39:43p Waiting for HTTP logging thread to terminate...
    8/27 02:39:43p HTTP logging thread started
    8/27 02:39:43p HTTP logging thread received NULL linked list log entry
    8/27 02:40:44p !TIMEOUT waiting for HTTP logging thread to terminate
    8/27 02:40:44p Done waiting for HTTP logging thread to terminate
    8/27 02:40:44p 0000 Waiting for 1 child threads to terminate
    9/2 08:13:27a Web Server terminate
    9/2 08:15:06a Web Server terminate
    9/2 08:59:36a Web Server terminate
    9/2 09:14:14a Web Server terminate
    9/2 09:18:47a Web Server terminate
    9/2 04:33:58p Web Server terminate

    The entries from 9/2 are me trying to force terminate the web server but it is neither stopping no recycling. I do not want to kill SBBS just recycle the web server.

    I see, it's not a client thread it's waiting on, it's the http-logging thread. I just committed a change that is likely to fix that.

    digital man

    Synchronet "Real Fact" #88:
    SBBSecho v3.00 was first committed to cvs.synchro.net on Apr-11-2016.
    Norco, CA WX: 82.5°F, 46.0% humidity, 6 mph ESE wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Gamgee on Mon Sep 2 23:30:55 2019
    Re: Re: Web Server Terminate
    By: Gamgee to MRO on Mon Sep 02 2019 03:06 pm

    i have been running synchronet for almost 20 years. cant believe
    it's been that long. i use a script to kill synchronet a few
    times a day AND i reboot the host a few times a day. it's just
    to clean up any problems from doors, etc.

    That seems ..... ridic^H^H^H^H^H excessive.

    Must be running under Windoze, I'd guess.

    I've been running Synchronet under Windows and I've never had to go to that extreme.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Mortifis on Mon Sep 2 23:47:22 2019
    Re: Web Server Terminate
    By: Mortifis to Rampage on Mon Sep 02 2019 04:41 pm

    Re: Web Server Terminate
    By: Rampage to Mortifis on Mon Sep 02 2019 08:31 am

    the server should time out after a period... the problem would be if the cli keeps refreshing the connection which will extend the timeout... it may be possible for you to force the server to terminate but that may leave some fi in a locked/unstable condition...

    I would have thought, however

    8/27 02:39:39p Recycling server...
    8/27 02:39:41p Reading C:\sbbs\ctrl\sbbs.ini
    8/27 02:39:41p Synchronet Web Server Revision 1.697
    8/27 02:39:41p Compiled Aug 14 2019 05:04:37 with MSC 1921
    8/27 02:39:41p Initializing on Tue Aug 27 14:39:41 2019 with options: d3
    8/27 02:39:41p Loading configuration files from C:\sbbs\ctrl\
    8/27 02:39:43p Web Server listening on socket 0.0.0.0 port 81
    8/27 02:39:43p Web Server listening on socket :: port 81
    8/27 02:39:43p Secure Web Server listening on socket 0.0.0.0 port 443
    8/27 02:39:43p Secure Web Server listening on socket :: port 443
    8/27 02:39:43p Web Server thread started
    8/27 02:39:43p Recycle semaphore file (C:\sbbs\ctrl\sbbs.ini) detected
    8/27 02:39:43p Waiting for HTTP logging thread to terminate...
    8/27 02:39:43p HTTP logging thread started
    8/27 02:39:43p HTTP logging thread received NULL linked list log entry
    8/27 02:40:44p !TIMEOUT waiting for HTTP logging thread to terminate
    8/27 02:40:44p Done waiting for HTTP logging thread to terminate
    8/27 02:40:44p 0000 Waiting for 1 child threads to terminate
    9/2 08:13:27a Web Server terminate
    9/2 08:15:06a Web Server terminate
    9/2 08:59:36a Web Server terminate
    9/2 09:14:14a Web Server terminate
    9/2 09:18:47a Web Server terminate
    9/2 04:33:58p Web Server terminate

    The entries from 9/2 are me trying to force terminate the web server but it is neither stopping no recycling. I do not want to kill SBBS just recycle the web server.

    I just committed a fix (hopefully) for this scenario. It's waiting forever for the http logging thread to terminate, and it's not going to, so you'll have to kill it in this instance. But after updating, hopefully it never happens again.

    digital man

    This Is Spinal Tap quote #1:
    Nigel Tufnel: These go to eleven.
    Norco, CA WX: 80.8°F, 50.0% humidity, 9 mph ESE wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Mortifis@VERT/ALLEYCAT to Digital Man on Wed Sep 4 13:44:14 2019

    I just committed a fix (hopefully) for this scenario. It's waiting forever for the http logging thread to terminate, and it's not going to, so you'll have to kill it in this instance. But after updating, hopefully it never happens again.

    digital man

    Thank you, I ended up using Windows Task Manager to Kill SBBSCTRL and restarted. I'll let you know if this happens again.


    My doctor said I have the body of a 25 year old ... and the mind of a 10 :-/

    ---
    ■ Synchronet ■ AlleyCat! BBS - http://alleycat.synchro.net:81