~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to server/mpm/beos/mpm_default.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Licensed to the Apache Software Foundation (ASF) under one or more
 
2
 * contributor license agreements.  See the NOTICE file distributed with
 
3
 * this work for additional information regarding copyright ownership.
 
4
 * The ASF licenses this file to You under the Apache License, Version 2.0
 
5
 * (the "License"); you may not use this file except in compliance with
 
6
 * the License.  You may obtain a copy of the License at
 
7
 *
 
8
 *     http://www.apache.org/licenses/LICENSE-2.0
 
9
 *
 
10
 * Unless required by applicable law or agreed to in writing, software
 
11
 * distributed under the License is distributed on an "AS IS" BASIS,
 
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
13
 * See the License for the specific language governing permissions and
 
14
 * limitations under the License.
 
15
 */
 
16
 
 
17
/**
 
18
 * @file  beos/mpm_default.h
 
19
 * @brief beos MPM defaults
 
20
 *
 
21
 * @addtogroup APACHE_MPM_BEOS
 
22
 * @{
 
23
 */
 
24
#ifndef APACHE_MPM_DEFAULT_H
 
25
#define APACHE_MPM_DEFAULT_H
 
26
 
 
27
/* we use the child (c) as zero in our code... */
 
28
#define AP_ID_FROM_CHILD_THREAD(c, t)     t
 
29
/* as the child is always zero, just return the id... */
 
30
#define AP_CHILD_THREAD_FROM_ID(i)        0 , i
 
31
 
 
32
/* Number of threads to spawn off by default --- also, if fewer than
 
33
 * this free when the caretaker checks, it will spawn more.
 
34
 */
 
35
#ifndef DEFAULT_START_THREADS
 
36
#define DEFAULT_START_THREADS 10
 
37
#endif
 
38
 
 
39
#ifdef NO_THREADS
 
40
#define DEFAULT_THREADS 1
 
41
#endif
 
42
#ifndef DEFAULT_THREADS
 
43
#define DEFAULT_THREADS 10
 
44
#endif
 
45
 
 
46
/* The following 2 settings are used to control the number of threads
 
47
 * we have available.  Normally the DEFAULT_MAX_FREE_THREADS is set
 
48
 * to the same as the HARD_THREAD_LIMIT to avoid churning of starting
 
49
 * new threads to replace threads killed off...
 
50
 */
 
51
 
 
52
/* Maximum number of *free* threads --- more than this, and
 
53
 * they will die off.
 
54
 */
 
55
#ifndef DEFAULT_MAX_FREE_THREADS
 
56
#define DEFAULT_MAX_FREE_THREADS HARD_THREAD_LIMIT
 
57
#endif
 
58
 
 
59
/* Minimum --- fewer than this, and more will be created */
 
60
#ifndef DEFAULT_MIN_FREE_THREADS
 
61
#define DEFAULT_MIN_FREE_THREADS 1
 
62
#endif
 
63
                   
 
64
/* Where the main/parent process's pid is logged */
 
65
#ifndef DEFAULT_PIDLOG
 
66
#define DEFAULT_PIDLOG DEFAULT_REL_RUNTIMEDIR "/httpd.pid"
 
67
#endif
 
68
 
 
69
/*
 
70
 * Interval, in microseconds, between scoreboard maintenance.
 
71
 */
 
72
#ifndef SCOREBOARD_MAINTENANCE_INTERVAL
 
73
#define SCOREBOARD_MAINTENANCE_INTERVAL 1000000
 
74
#endif
 
75
 
 
76
/* Number of requests to try to handle in a single process.  If == 0,
 
77
 * the children don't die off.
 
78
 */
 
79
#ifndef DEFAULT_MAX_REQUESTS_PER_THREAD
 
80
#define DEFAULT_MAX_REQUESTS_PER_THREAD 0
 
81
#endif
 
82
 
 
83
#endif /* AP_MPM_DEFAULT_H */
 
84
/** @} */