]> git.pld-linux.org Git - packages/apache.git/commitdiff
- manually updated for 1.3.27 (no new mod_ssl yet)
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 4 Oct 2002 09:20:44 +0000 (09:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_ssl-eapi.patch -> 1.8

apache-mod_ssl-eapi.patch

index eb08b3afbd29e3a3cc9ab67078b9151ca7f73d4b..af7bdfa0d2a5d34960d601911aa9e8b5aa0ec9ac 100644 (file)
@@ -19,6 +19,8 @@
 ## tree which add the Extended API (EAPI) support.
 ##
 
+# updated for apache 1.3.27 on 04-Oct-2002
+
 +---------------------------------------------------------------------------
 | Add the EAPI and EAPI_MM configuration entries which triggers the EAPI
 | patches and configured the shared memory support via the MM library.
@@ -876,19 +878,19 @@ Index: src/main/alloc.c
      ap_unblock_alarms();
  
 @@ -877,6 +1076,11 @@
-     char *ptr;
-     size = (char *)ps->vbuff.curpos - ps->base;
+     size = cur_len << 1;
+     if (size < AP_PSPRINTF_MIN_SIZE)
+         size = AP_PSPRINTF_MIN_SIZE;
 +#if defined(EAPI) && defined(EAPI_MM)
 +    if (ps->block->h.is_shm)
-+        ptr = ap_mm_realloc(ps->base, 2*size);
++        ptr = ap_mm_realloc(ps->base, size);
 +    else
 +#endif
-     ptr = realloc(ps->base, 2*size);
+     ptr = realloc(ps->base, size);
      if (ptr == NULL) {
        fputs("Ouch!  Out of memory!\n", stderr);
 @@ -897,9 +1101,21 @@
-     cur_len = strp - blok->h.first_avail;
+         size = AP_PSPRINTF_MIN_SIZE;
  
      /* must try another blok */
 +#if defined(EAPI) && defined(EAPI_MM)
@@ -897,9 +899,9 @@ Index: src/main/alloc.c
 +#endif
      (void) ap_acquire_mutex(alloc_mutex);
 +#if defined(EAPI) && defined(EAPI_MM)
-+    nblok = new_block(2 * cur_len, blok->h.is_shm);
++    nblok = new_block(size, blok->h.is_shm);
 +#else
-     nblok = new_block(2 * cur_len);
+     nblok = new_block(size);
 +#endif
      (void) ap_release_mutex(alloc_mutex);
 +#if defined(EAPI) && defined(EAPI_MM)
This page took 0.099689 seconds and 4 git commands to generate.