You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Marc Slemko <ma...@znep.com> on 1997/06/08 02:12:59 UTC

[PATCH] SendBufferSize not valid in virtualhost

Proposed for both branches of the tree.

Index: src/http_core.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_core.c,v
retrieving revision 1.81
diff -c -r1.81 http_core.c
*** http_core.c	1997/05/08 13:09:24	1.81
--- http_core.c	1997/06/08 00:11:01
***************
*** 867,872 ****
--- 867,875 ----
  
  const char *set_send_buffer_size (cmd_parms *cmd, void *dummy, char *arg) {
      int s = atoi (arg);
+     if (cmd->server->is_virtual) {
+         return "SendBufferSize directive can not be used in <VirtualHost>";
+     }
      if (s < 512 && s != 0) {
          return "SendBufferSize must be >= 512 bytes, or 0 for system default.";
      }
Index: htdocs/manual/mod/core.html
===================================================================
RCS file: /export/home/cvs/apache/htdocs/manual/mod/core.html,v
retrieving revision 1.56
diff -c -r1.56 core.html
*** core.html	1997/06/04 16:14:13	1.56
--- core.html	1997/06/08 00:11:05
***************
*** 1158,1164 ****
  <A name="sendbuffersize"><h2>SendBufferSize directive</h2></A>
  <!--%plaintext &lt;?INDEX {\tt SendBufferSize} directive&gt; -->
  <strong>Syntax:</strong> SendBufferSize <em>bytes</em><br>
! <strong>Context:</strong> server config, virtual host<br>
  <strong>Status:</strong> core<p>
  
  The server will set the TCP buffer size to the number of bytes
--- 1158,1164 ----
  <A name="sendbuffersize"><h2>SendBufferSize directive</h2></A>
  <!--%plaintext &lt;?INDEX {\tt SendBufferSize} directive&gt; -->
  <strong>Syntax:</strong> SendBufferSize <em>bytes</em><br>
! <strong>Context:</strong> server config<br>
  <strong>Status:</strong> core<p>
  
  The server will set the TCP buffer size to the number of bytes


Re: [PATCH] SendBufferSize not valid in virtualhost

Posted by Dean Gaudet <dg...@arctic.org>.
+1

On Sat, 7 Jun 1997, Marc Slemko wrote:

> Proposed for both branches of the tree.
> 
> Index: src/http_core.c
> ===================================================================
> RCS file: /export/home/cvs/apache/src/http_core.c,v
> retrieving revision 1.81
> diff -c -r1.81 http_core.c
> *** http_core.c	1997/05/08 13:09:24	1.81
> --- http_core.c	1997/06/08 00:11:01
> ***************
> *** 867,872 ****
> --- 867,875 ----
>   
>   const char *set_send_buffer_size (cmd_parms *cmd, void *dummy, char *arg) {
>       int s = atoi (arg);
> +     if (cmd->server->is_virtual) {
> +         return "SendBufferSize directive can not be used in <VirtualHost>";
> +     }
>       if (s < 512 && s != 0) {
>           return "SendBufferSize must be >= 512 bytes, or 0 for system default.";
>       }
> Index: htdocs/manual/mod/core.html
> ===================================================================
> RCS file: /export/home/cvs/apache/htdocs/manual/mod/core.html,v
> retrieving revision 1.56
> diff -c -r1.56 core.html
> *** core.html	1997/06/04 16:14:13	1.56
> --- core.html	1997/06/08 00:11:05
> ***************
> *** 1158,1164 ****
>   <A name="sendbuffersize"><h2>SendBufferSize directive</h2></A>
>   <!--%plaintext &lt;?INDEX {\tt SendBufferSize} directive&gt; -->
>   <strong>Syntax:</strong> SendBufferSize <em>bytes</em><br>
> ! <strong>Context:</strong> server config, virtual host<br>
>   <strong>Status:</strong> core<p>
>   
>   The server will set the TCP buffer size to the number of bytes
> --- 1158,1164 ----
>   <A name="sendbuffersize"><h2>SendBufferSize directive</h2></A>
>   <!--%plaintext &lt;?INDEX {\tt SendBufferSize} directive&gt; -->
>   <strong>Syntax:</strong> SendBufferSize <em>bytes</em><br>
> ! <strong>Context:</strong> server config<br>
>   <strong>Status:</strong> core<p>
>   
>   The server will set the TCP buffer size to the number of bytes
> 
>