mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Services: threadperclient, a thread for each client where one is needed
A flag of the service for what cannot share a thread between clients, once clients can be served otherwise: what waits other than in sockpoll(), or a thread which may be unable to serve another client. It is set for a service - with FilePlugin, whose _prepoll writes files and sends them; - with a -ne network namespace: a thread which failed to come back from it to the main namespace is not to serve another client; - writing to an ODBC log, should the log have no thread of its own to write it: struct logtype has blocks, for a log waiting other than in sockpoll(). Nothing serves clients otherwise yet: as before, each has a thread. Incompatible for plugins, which have to be built again with the same version of 3proxy: struct srvparam has threadperclient, struct logtype has blocks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b4bbcb9e9a
commit
3e7f749eb6
4 files changed
+12
-1
No files matched your search
@@ -667,6 +667,7 @@ struct logtype {
|
||||
int standard; /* kept open for the life of the process */
|
||||
int text; /* writes a line of text: errors can go there */
|
||||
int params; /* the string after a comma is parameters */
|
||||
int blocks; /* waits for its writes other than in sockpoll() */
|
||||
};
|
||||
|
||||
/* What a log's queue holds: a line (log.c's struct logslot, of which this
|
||||
@@ -746,6 +747,9 @@ struct srvparam {
|
||||
int family;
|
||||
int resolvmode; /* RESOLVE_* */
|
||||
int stacksize;
|
||||
/* a thread for each client: what serves them waits other than in
|
||||
sockpoll(), or must not be left by a thread to serve another */
|
||||
int threadperclient;
|
||||
struct extparam *config; /* the configuration it was started with */
|
||||
int timeouts[12]; /* conf.timeouts as they were when the service started */
|
||||
int filtermaxsize, parentretries, maxseg; /* and these */
|
||||
|
||||
Reference in new issue
Block a user