From: Eric Covener Date: Wed, 14 Jan 2015 13:22:36 +0000 (+0000) Subject: Merge r1651088 from trunk: X-Git-Tag: 2.4.11~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff397f0409dc4ab96a7527bac16cfeac794b3e32;p=thirdparty%2Fapache%2Fhttpd.git Merge r1651088 from trunk: Update conn_rec.id when a new thread begins working on a connection, because the old thread may work on a new connection and assign the same ID in parallel. Submitted By: Michael Thorpe Committed By: covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1651656 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 765eb376d0c..00979716d46 100644 --- a/CHANGES +++ b/CHANGES @@ -5,6 +5,9 @@ Changes with Apache 2.4.11 *) SECURITY: CVE-2014-3583 (cve.mitre.org) mod_proxy_fcgi: Fix a potential crash due to buffer over-read, with response headers' size above 8K. [Yann Ylavic, Jeff Trawick] + *) event: Update the internal "connection id" when requests + move from thread to thread. Reuse can confuse modules like + mod_cgid. PR 57435. [Michael Thorpe ] *) SECURITY: CVE-2014-3581 (cve.mitre.org) mod_cache: Avoid a crash when Content-Type has an empty value. @@ -22,6 +25,10 @@ Changes with Apache 2.4.11 request headers earlier. Adds "MergeTrailers" directive to restore legacy behavior. [Edward Lu, Yann Ylavic, Joe Orton, Eric Covener] + *) mod_ssl: Add support for extracting subjectAltName entries of type + rfc822Name and dNSName into SSL_{CLIENT,SERVER}_SAN_{Email,DNS}_n + environment variables. Also addresses PR 57207. [Kaspar Brand] + *) core: Configuration files with long lines and continuation characters are not read properly. PR 55910. [Manuel Mausz ] diff --git a/server/mpm/event/event.c b/server/mpm/event/event.c index 9e41c695ce6..7d2a31c31a4 100644 --- a/server/mpm/event/event.c +++ b/server/mpm/event/event.c @@ -1012,6 +1012,8 @@ static void process_socket(apr_thread_t *thd, apr_pool_t * p, apr_socket_t * soc c->sbh = sbh; notify_resume(cs); c->current_thread = thd; + /* Subsequent request on a conn, and thread number is part of ID */ + c->id = conn_id; } if (c->clogging_input_filters && !c->aborted) {