[mod_cluster-issues] [JBoss JIRA] (MODCLUSTER-621) maxbufsize doesn't include JVMROUTESZ

Robert Bost (JIRA) issues at jboss.org
Mon Sep 25 14:07:00 EDT 2017


Robert Bost created MODCLUSTER-621:
--------------------------------------

             Summary: 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: Minor


https://github.com/modcluster/mod_proxy_cluster/blob/master/native/mod_manager/mod_manager.c#L2956-L2959

{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?



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the mod_cluster-issues mailing list