httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: httpd-2.0/modules/ssl ssl_engine_io.c
Date Fri, 12 Oct 2001 02:00:42 GMT
jerenkrantz    01/10/11 19:00:42

  Modified:    modules/proxy proxy_http.c
               modules/ssl ssl_engine_io.c
  Log:
  Lose the magic number and use the central #define AP_IOBUFSIZE.
  
  Hey, I've never seen it in actual use anywhere, so I didn't know.
  
  Thanks to Roy for pointing it out.
  
  Revision  Changes    Path
  1.103     +2 -2      httpd-2.0/modules/proxy/proxy_http.c
  
  Index: proxy_http.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/proxy_http.c,v
  retrieving revision 1.102
  retrieving revision 1.103
  diff -u -r1.102 -r1.103
  --- proxy_http.c	2001/10/11 20:03:26	1.102
  +++ proxy_http.c	2001/10/12 02:00:41	1.103
  @@ -812,7 +812,7 @@
                   apr_off_t readbytes;
                   apr_bucket *e;
                   rp->headers_in = r->headers_out;
  -                readbytes = 8192;
  +                readbytes = AP_IOBUFSIZE;
                   while (ap_get_brigade(rp->input_filters, 
                                          bb, 
                                         AP_MODE_NONBLOCKING, 
  @@ -837,7 +837,7 @@
                           break;
                       }
                       apr_brigade_cleanup(bb);
  -                    readbytes = 8192;
  +                    readbytes = AP_IOBUFSIZE;
                   }
               }
               ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r->server,
  
  
  
  1.39      +5 -6      httpd-2.0/modules/ssl/ssl_engine_io.c
  
  Index: ssl_engine_io.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/ssl/ssl_engine_io.c,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- ssl_engine_io.c	2001/10/11 01:49:21	1.38
  +++ ssl_engine_io.c	2001/10/12 02:00:41	1.39
  @@ -309,7 +309,7 @@
               return APR_SUCCESS;
           }
           if (rv == SSL_ERROR_WANT_READ) {
  -            apr_off_t tempread = 1024;
  +            apr_off_t tempread = AP_IOBUFSIZE;
               return churn_input(pRec, eMode, &tempread);
           }
           return rv;
  @@ -331,7 +331,7 @@
       }
   
       if (n < 0 && errno == EINTR && APR_BRIGADE_EMPTY(ctx->b)) {
  -        apr_off_t tempread = 1024;
  +        apr_off_t tempread = AP_IOBUFSIZE;
           return churn_input(pRec, eMode, &tempread);
       }
   
  @@ -462,10 +462,9 @@
           return APR_SUCCESS;
       }
      
  -    /* Readbytes == 0 implies we only want a LF line. 
  -     * 1024 seems like a good number for now. */
  +    /* Readbytes == 0 implies we only want a LF line. */
       if (APR_BRIGADE_EMPTY(ctx->b)) {
  -        tempread = 1024; 
  +        tempread = AP_IOBUFSIZE;
           rv = churn_input(ctx, mode, &tempread);
           if (rv != APR_SUCCESS)
               return rv;
  @@ -505,7 +504,7 @@
   
           /* Hey, we're about to be starved - go fetch more data. */
           if (APR_BRIGADE_EMPTY(ctx->b)) {
  -            tempread = 1024;
  +            tempread = AP_IOBUFSIZE;
               ret = churn_input(ctx, mode, &tempread);
               if (ret != APR_SUCCESS)
   	            return ret;
  
  
  

Mime
View raw message