<!--#include virtual="header.html" -->
<H1 ALIGN="CENTER">Apache Server Frequently Asked Questions</H1>
<P>
- $Revision: 1.96 $ ($Date: 1997/12/16 16:52:19 $)
+ $Revision: 1.97 $ ($Date: 1998/01/22 23:11:48 $)
</P>
<P>
The latest version of this FAQ is always available from the main
<A HREF="http://www.linuxhq.com/HOWTO/META-FAQ.html"
>Linux newsgroup/mailing list</A>.
As a last-resort workaround, you can
- comment out the <CODE>#define HAVE_SHMGET</CODE> definition in the
+ comment out the <CODE>#define USE_SHMGET_SCOREBOARD</CODE> definition in the
<SAMP>LINUX</SAMP> section of
<SAMP>src/conf.h</SAMP> and rebuild the server. This will produce
a server which is slower and less reliable.
But unserialized single-socket showed an extra 100ms latency on
each request. This latency is probably a wash on long haul lines,
and only an issue on LANs. If you want to override the single socket
-serialization you can define <code>SAFE_UNSERIALIZED_ACCEPT</code>
+serialization you can define <code>SINGLE_LISTEN_UNSERIALIZED_ACCEPT</code>
and then single-socket servers will not serialize at all.
<h4>Lingering Close</h4>
implemented using shared memory. The rest default to using an
on-disk file. The on-disk file is not only slow, but it is unreliable
(and less featured). Peruse the <code>src/main/conf.h</code> file
-for your architecture and look for either <code>HAVE_MMAP</code> or
-<code>HAVE_SHMGET</code>. Defining one of those two enables the
+for your architecture and look for either <code>USE_MMAP_SCOREBOARD</code> or
+<code>USE_SHMGET_SCOREBOARD</code>. Defining one of those two enables the
supplied shared memory code. If your system has another type of
shared memory then edit the file <code>src/main/http_main.c</code> and
add the hooks necessary to use it in Apache. (Send us back a patch
</pre></blockquote>
These two calls can be removed by defining
-<code>SAFE_UNSERIALIZED_ACCEPT</code> as described earlier.
+<code>SINGLE_LISTEN_UNSERIALIZED_ACCEPT</code> as described earlier.
<p>Notice the <code>SIGUSR1</code> manipulation:
which were described earlier.
<p>Let's apply some of these optimizations:
-<code>-DSAFE_UNSERIALIZED_ACCEPT -DBUFFERED_LOGS</code> and
+<code>-DSINGLE_LISTEN_UNSERIALIZED_ACCEPT -DBUFFERED_LOGS</code> and
<code>Rule STATUS=no</code>. Here's the final trace:
<blockquote><pre>
Apache 1.2 and above:<p>
-Linux 1.x users might be able to add <code>-DHAVE_SHMGET</code> to
+Linux 1.x users might be able to add <code>-DUSE_SHMGET_SCOREBOARD</code> to
the <code>EXTRA_CFLAGS</code> in your <code>Configuration</code>. This
might work with some 1.x installations, but won't work with all of
them.<p>
-SVR4 users should consider adding <code>-DHAVE_SHMGET</code> to the
+SVR4 users should consider adding <code>-DUSE_SHMGET_SCOREBOARD</code> to the
<code>EXTRA_CFLAGS</code> in your <code>Configuration</code>. This
is believed to work, but we were unable to test it in time for 1.2
release.<p>