Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Hodie natus est radici frater. [ Unto the root is born a brother ]


dovenet / Synchronet Programming / src/sbbs3/ctrl/MainFormUnit.cpp src/sbbs3/ftpsrvr.c mailsrvr.c main.cp

SubjectAuthor
o src/sbbs3/ctrl/MainFormUnit.cpp src/sbbs3/ftpsrvr.c mailsrvr.c main.cpRob Swindell (on Debian Linux)

1
src/sbbs3/ctrl/MainFormUnit.cpp src/sbbs3/ftpsrvr.c mailsrvr.c main.cp

<65A1E1FA.48391.syncprog@vert.synchro.net>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=2414&group=DOVE-Net.Synchronet_Programming#2414

  copy link   Newsgroups: DOVE-Net.Synchronet_Programming
From: rob.swindell.(on.debian.linux)@VERT (Rob Swindell (on Debian Linux))
To: Git commit to main/sbbs/master
Subject: src/sbbs3/ctrl/MainFormUnit.cpp src/sbbs3/ftpsrvr.c mailsrvr.c main.cp
Message-ID: <65A1E1FA.48391.syncprog@vert.synchro.net>
Date: Fri, 12 Jan 2024 17:06:02 -0800
X-Comment-To: Git commit to main/sbbs/master
Path: rocksolidbbs.com!not-for-mail
Organization: Vertrauen
Newsgroups: DOVE-Net.Synchronet_Programming
X-FTN-PID: Synchronet 3.20a-Linux master/986e7a5a2 Jan 11 2024 GCC 12.2.0
X-FTN-MSGID: 48391.syncprog@1:103/705 2a07d501
X-FTN-CHRS: CP437 2
WhenImported: 20240112170602-0800 41e0
WhenExported: 20240112201334-0800 41e0
ExportedFrom: VERT syncprog 48391
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Rob Swindell (on Deb - Sat, 13 Jan 2024 01:06 UTC

https://gitlab.synchro.net/main/sbbs/-/commit/63d0772d84678f216d83e3ab
Modified Files:
src/sbbs3/ctrl/MainFormUnit.cpp src/sbbs3/ftpsrvr.c mailsrvr.c main.cpp mqtt.c server.h services.c startup.h websrvr.c
Log Message:
Check for shutdown and recycle semaphores even while clients are connected

We have checks/loops/timeouts waiting for active clients to disconnect and
child thread threads to terminate whenever shutting down or recycling already,
so this should be safe. This pretty simple change fixes issue #236 (can't
terminate server under heavy load).

Also as part of this commit, introduced the ability to "pause" a server
(prevent it from accepting new connections) with the ctrl/pause semaphore
file or via the MQTT server/pause (and resume) topics. This feature is useful
when debugging server issues where you don't necessarily want to fully
shutdown/terminate the server, but don't want any new connections to be
accepted (the listen backlog will fill up with incoming connections though).
Unlike a server shutdown, a server pause can be "undone" via MQTT (by
publishing a message to the "resume" topic).

The "pause" semaphore file is just an "existence" semaphore file - its
date/time stamp doesn't matter. If the file exists, the server will enter
a paused state (and periodically log messages to that fact) until the semfile
is deleted.

This server pause feature is not the same as the pause button function in
sbbsctrl, which just pauses server log output.

---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net


dovenet / Synchronet Programming / src/sbbs3/ctrl/MainFormUnit.cpp src/sbbs3/ftpsrvr.c mailsrvr.c main.cp

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor