]
Jean-Frederic Clere resolved MODCLUSTER-621.
--------------------------------------------
Fix Version/s: 2.0.0.Alpha2
Resolution: Done
fixed by
maxbufsize doesn't include JVMROUTESZ
-------------------------------------
Key: MODCLUSTER-621
URL:
https://issues.jboss.org/browse/MODCLUSTER-621
Project: mod_cluster
Issue Type: Bug
Components: Native (httpd modules)
Reporter: Robert Bost
Assignee: Jean-Frederic Clere
Priority: Major
Fix For: 2.0.0.Alpha2
https://github.com/modcluster/mod_proxy_cluster/blob/master/native/mod_ma...
{code}
if (mconf->maxmesssize)
maxbufsiz = mconf->maxmesssize;
else {
/* we calculate it */
maxbufsiz = 9 + JVMROUTESZ;
maxbufsiz = bufsiz + (mconf->maxhost * HOSTALIASZ) + 7;
maxbufsiz = bufsiz + (mconf->maxcontext * CONTEXTSZ) + 8;
}
if (maxbufsiz< MAXMESSSIZE)
maxbufsiz = MAXMESSSIZE;
buff = apr_pcalloc(r->pool, maxbufsiz);
{code}
It looks like {{maxbufsize}} will never include the {{9+JVMROUTESZ}} since it overwritten
with new value in following line. Is this a problem?