Re: Restriction on quantity of connections.
Александр Корков <[email protected]> Mon, 17 Sep 2007 22:42:04 +0400
| Newsgroups | gmane.linux.dazuko.devel |
|---|---|
| Organization | СПбГУ (SPBSU) |
| Message-ID | <[email protected]> |
John Ogness wrote: > Alexander Korkov wrote: > >> How I can increase quantity of connections by one group of trusted programs? >> >> It depends somehow on it? >> >> #define NUM_SLOTS 25 >> > > Yes, Dazuko implements the list of registered (or trusted) processes > using an array. The size of this array is hard-coded (at 25). By > increasing this size, you will increase the number of allowed registered > (or trusted) processes per group. > > An array was chosen to simplify concurrent access to the list and allow > for very small regions to be protected by locks. > > If increasing this value is important for you application, I could add a > "configure" option that allows the value to be set dynamically. For example: > > $ ./configure --procs-per-group=50 > > A design based on dynamic-length lists is in the works and should be > included in an upcoming 3.0 version. > > John Ogness > > Yes, the option for a configure is a good way for the Dazuko versions less than 3. It will allow me to not include patches in my application. Thanks, I shall be grateful, if such option will be. -- Alexander Korkov