mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Count the traffic of each listener
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI MacOS / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI Windows / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
C/C++ CI cmake / ubuntu-latest (wolfSSL) (push) Has been cancelled
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI Linux / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI MacOS / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI Windows / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (macos-15) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-24.04-arm) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (ubuntu-latest) (push) Has been cancelled
C/C++ CI cmake / ${{ matrix.target }} (windows-2022) (push) Has been cancelled
C/C++ CI cmake / ubuntu-latest (wolfSSL) (push) Has been cancelled
A listener counts the traffic of its clients as it is logged: bytes from servers (%I) and from clients (%O). clearstat(), which every log writer calls once a line is logged, as well as lognone and logradius, adds the counts to the client's listener before clearing them, through listenertrafficfunc, set where services have listeners and NULL in the standalone binaries. The admin services page shows them as listenertrafin and listenertrafout. The takeover case checks that they go on through three reloads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6e12c2ce63
commit
67a73a4132
7 files changed
+56
-3
No files matched your search
@@ -234,6 +234,7 @@ struct extparam confboot = {
|
||||
struct extparam *conf = &confboot;
|
||||
struct extparam *runconf = &confboot;
|
||||
int (*reattachfunc)(struct clientparam *param, int auth) = NULL;
|
||||
void (*listenertrafficfunc)(struct clientparam *param) = NULL;
|
||||
|
||||
/* Authorizes a request on a connection which may outlive a reload, an HTTP
|
||||
one kept alive: as a client of the service whose rules apply now, the
|
||||
|
||||
Reference in new issue
Block a user