[JBoss JIRA] (MODCLUSTER-427) mod_cluster can break stickiness for the first request on new child processes
by Radoslav Husar (JIRA)
[ https://issues.jboss.org/browse/MODCLUSTER-427?page=com.atlassian.jira.pl... ]
Radoslav Husar updated MODCLUSTER-427:
--------------------------------------
Fix Version/s: 1.3.1.Alpha3
(was: 1.3.1.Alpha2)
> mod_cluster can break stickiness for the first request on new child processes
> -----------------------------------------------------------------------------
>
> Key: MODCLUSTER-427
> URL: https://issues.jboss.org/browse/MODCLUSTER-427
> Project: mod_cluster
> Issue Type: Bug
> Components: Native (httpd modules)
> Affects Versions: 1.2.9.Final, 1.3.1.Alpha1
> Environment: JBoss EAP 6.3.0
> Reporter: Aaron Ogburn
> Assignee: Jean-Frederic Clere
> Fix For: 1.2.10.Final, 1.3.1.Alpha3
>
>
> mod_cluster can break stickiness for the first request on new child processes. It looks like this occurs specifically when "CreateBalancers 1" is used. Prefork typically makes this much worse as well.
> My debugging showed that the proxy_balancer would exist, but it would essentially be empty in the new child process. find_session_route/find_route_worker would be called as expected, but the for loop in find_route_worker wasn't even doing anything because balancer->workers->nelts was 0. The balancer would then finally be populated in the new child when the first request hits internal_find_best_byrequests and calls update_workers_node.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 3 months
[JBoss JIRA] (MODCLUSTER-429) Some problems were encountered while building the effective model for org.jboss:User-Guide-en:jdocbook:1.3.1.Alpha3-SNAPSHOT
by Radoslav Husar (JIRA)
[ https://issues.jboss.org/browse/MODCLUSTER-429?page=com.atlassian.jira.pl... ]
Radoslav Husar updated MODCLUSTER-429:
--------------------------------------
Fix Version/s: 1.3.1.Alpha3
(was: 1.3.1.Alpha2)
> Some problems were encountered while building the effective model for org.jboss:User-Guide-en:jdocbook:1.3.1.Alpha3-SNAPSHOT
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: MODCLUSTER-429
> URL: https://issues.jboss.org/browse/MODCLUSTER-429
> Project: mod_cluster
> Issue Type: Bug
> Components: Core & Container Integration (Java)
> Reporter: Radoslav Husar
> Assignee: Radoslav Husar
> Priority: Minor
> Fix For: 1.3.1.Alpha3
>
>
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model for org.jboss:User-Guide-en:jdocbook:1.3.1.Alpha3-SNAPSHOT
> [WARNING] 'artifactId' contains an expression but should be a constant. @ org.jboss:User-Guide-${translation}:1.3.1.Alpha3-SNAPSHOT, /home/rhusar/git/mod_cluster/docs/userguide/pom.xml, line 31, column 17
> [WARNING] 'parent.relativePath' points at org.jboss.mod_cluster:org.jboss.mod_cluster-docs instead of org.jboss:jboss-parent, please verify your project structure @ org.jboss:User-Guide-${translation}:1.3.1.Alpha3-SNAPSHOT, /home/rhusar/git/mod_cluster/docs/userguide/pom.xml, line 24, column 13
> [WARNING]
> [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
> [WARNING]
> [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
> [WARNING]
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 3 months
[JBoss JIRA] (MODCLUSTER-429) Some problems were encountered while building the effective model for org.jboss:User-Guide-en:jdocbook:1.3.1.Alpha3-SNAPSHOT
by Radoslav Husar (JIRA)
Radoslav Husar created MODCLUSTER-429:
-----------------------------------------
Summary: Some problems were encountered while building the effective model for org.jboss:User-Guide-en:jdocbook:1.3.1.Alpha3-SNAPSHOT
Key: MODCLUSTER-429
URL: https://issues.jboss.org/browse/MODCLUSTER-429
Project: mod_cluster
Issue Type: Bug
Components: Core & Container Integration (Java)
Reporter: Radoslav Husar
Assignee: Radoslav Husar
Priority: Minor
Fix For: 1.3.1.Alpha2
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.jboss:User-Guide-en:jdocbook:1.3.1.Alpha3-SNAPSHOT
[WARNING] 'artifactId' contains an expression but should be a constant. @ org.jboss:User-Guide-${translation}:1.3.1.Alpha3-SNAPSHOT, /home/rhusar/git/mod_cluster/docs/userguide/pom.xml, line 31, column 17
[WARNING] 'parent.relativePath' points at org.jboss.mod_cluster:org.jboss.mod_cluster-docs instead of org.jboss:jboss-parent, please verify your project structure @ org.jboss:User-Guide-${translation}:1.3.1.Alpha3-SNAPSHOT, /home/rhusar/git/mod_cluster/docs/userguide/pom.xml, line 24, column 13
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 3 months
[JBoss JIRA] (MODCLUSTER-428) proxy_cluster_child_init in mod_proxy_cluster.c after commit 603d2dac is broken on Windows
by Michal Babacek (JIRA)
[ https://issues.jboss.org/browse/MODCLUSTER-428?page=com.atlassian.jira.pl... ]
Michal Babacek updated MODCLUSTER-428:
--------------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/modcluster/mod_cluster/pull/112
> proxy_cluster_child_init in mod_proxy_cluster.c after commit 603d2dac is broken on Windows
> ------------------------------------------------------------------------------------------
>
> Key: MODCLUSTER-428
> URL: https://issues.jboss.org/browse/MODCLUSTER-428
> Project: mod_cluster
> Issue Type: Bug
> Environment: Windows, httpd:2.4.7|apr:v:1.5.0|apu:v:1.5.3|api:v:1.2.1|ssl:v:0.9.8r|zlib:v:1.2.3|iconv:v:1.14|expat:v:1.95.8|pcre:v:8.34
> Reporter: Michal Babacek
> Assignee: Michal Babacek
> Priority: Blocker
>
> It seems that 603d2dac version of mod_proxy_cluster.c is the last one that operates on Windows. More recent versions of the module fail on compilation:
> {code}
> Building slotmem module ...
> 2 File(s) copied
> cl -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_CONSOLE -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_CONSOLE -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -O2 -DPROXY_DECLARE_IMPORT -I. -IC:\tmp\jbossnative\build\unix\work\mod_cluster-1.3.1.Alpha2-SNAPSHOT-src-ssl\output\windows-x86\httpd-2.4\include -I../generators -I../ssl -FoWINXP_X86_DLL_RELEASE\ -FdWINXP_X86_DLL_RELEASE\mod_proxy_cluster-src .\mod_proxy_cluster.c
> mod_proxy_cluster.c
> .\mod_proxy_cluster.c(2679) : error C2275: 'server_rec' : illegal use of this type as an expression
> c:\tmp\jbossnative\build\unix\work\mod_cluster-1.3.1.alpha2-snapshot-src-ssl\output\windows-x86\httpd-2.4\include\httpd.h(750) : see declaration of 'server_rec'
> .\mod_proxy_cluster.c(2679) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2680) : error C2143: syntax error : missing ';' before 'type'
> .\mod_proxy_cluster.c(2681) : error C2275: 'proxy_server_conf' : illegal use of this type as an expression
> c:\tmp\jbossnative\build\unix\work\mod_cluster-1.3.1.alpha2-snapshot-src-ssl\srclib\httpd-2.4.7\modules\proxy\mod_proxy.h(186) : see declaration of 'proxy_server_conf'
> .\mod_proxy_cluster.c(2681) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2682) : error C2065: 'sconf' : undeclared identifier
> .\mod_proxy_cluster.c(2683) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2685) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2685) : error C2223: left of '->pool' must point to struct/union
> .\mod_proxy_cluster.c(2685) : error C2198: 'apr_pool_create_ex' : too few arguments for call
> .\mod_proxy_cluster.c(2686) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2687) : error C2065: 'sconf' : undeclared identifier
> .\mod_proxy_cluster.c(2687) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2687) : error C2223: left of '->module_config' must point to struct/union
> .\mod_proxy_cluster.c(2688) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2689) : error C2065: 'sconf' : undeclared identifier
> .\mod_proxy_cluster.c(2689) : warning C4047: '=' : 'int' differs in levels of indirection from 'proxy_server_conf *'
> .\mod_proxy_cluster.c(2691) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2691) : warning C4047: 'function' : 'proxy_server_conf *' differs in levels of indirection from 'int'
> .\mod_proxy_cluster.c(2691) : warning C4024: 'update_workers_node' : different types for formal and actual parameter 1
> .\mod_proxy_cluster.c(2691) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2691) : warning C4047: 'function' : 'server_rec *' differs in levels of indirection from 'int'
> .\mod_proxy_cluster.c(2691) : warning C4024: 'update_workers_node' : different types for formal and actual parameter 3
> .\mod_proxy_cluster.c(2693) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2693) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2693) : error C2223: left of '->next' must point to struct/union
> NMAKE : fatal error U1077: 'C:\cmsc\msvc\bin\i386\cl.EXE' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'C:\cmsc\msvc\bin\nmake.exe' : return code '0x2'
> Stop.
> Building aaa modules ...
> {code}
> One may safely guess that the error lies along these lines:
> {code}
> /native/mod_proxy_cluster/mod_proxy_cluster.c
> server_rec *s2 = main_server;
> void *sconf = s2->module_config;
> proxy_server_conf *conf = (proxy_server_conf *)
> ap_get_module_config(sconf, &proxy_module);
> if (conf) {
> apr_pool_t *pool;
> apr_pool_create(&pool, conf->pool);
> while (s2) {
> sconf = s2->module_config;
> conf = (proxy_server_conf *)
> ap_get_module_config(sconf, &proxy_module);
> update_workers_node(conf, pool, s2, 0);
> s2 = s2->next;
> }
> apr_pool_destroy(pool);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 3 months
[JBoss JIRA] (MODCLUSTER-428) proxy_cluster_child_init in mod_proxy_cluster.c after commit 603d2dac is broken on Windows
by Michal Babacek (JIRA)
[ https://issues.jboss.org/browse/MODCLUSTER-428?page=com.atlassian.jira.pl... ]
Michal Babacek edited comment on MODCLUSTER-428 at 9/12/14 7:46 AM:
--------------------------------------------------------------------
Relevant commit: [2844e76c|https://github.com/modcluster/mod_cluster/commit/2844e76c396022c...]
(that's perhaps breaking the C89 nmakeish style?)
was (Author: mbabacek):
Relevant commit: [2844e76c|https://github.com/modcluster/mod_cluster/commit/2844e76c396022c...]
> proxy_cluster_child_init in mod_proxy_cluster.c after commit 603d2dac is broken on Windows
> ------------------------------------------------------------------------------------------
>
> Key: MODCLUSTER-428
> URL: https://issues.jboss.org/browse/MODCLUSTER-428
> Project: mod_cluster
> Issue Type: Bug
> Environment: Windows, httpd:2.4.7|apr:v:1.5.0|apu:v:1.5.3|api:v:1.2.1|ssl:v:0.9.8r|zlib:v:1.2.3|iconv:v:1.14|expat:v:1.95.8|pcre:v:8.34
> Reporter: Michal Babacek
> Assignee: Michal Babacek
> Priority: Blocker
>
> It seems that 603d2dac version of mod_proxy_cluster.c is the last one that operates on Windows. More recent versions of the module fail on compilation:
> {code}
> Building slotmem module ...
> 2 File(s) copied
> cl -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_CONSOLE -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_CONSOLE -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -O2 -DPROXY_DECLARE_IMPORT -I. -IC:\tmp\jbossnative\build\unix\work\mod_cluster-1.3.1.Alpha2-SNAPSHOT-src-ssl\output\windows-x86\httpd-2.4\include -I../generators -I../ssl -FoWINXP_X86_DLL_RELEASE\ -FdWINXP_X86_DLL_RELEASE\mod_proxy_cluster-src .\mod_proxy_cluster.c
> mod_proxy_cluster.c
> .\mod_proxy_cluster.c(2679) : error C2275: 'server_rec' : illegal use of this type as an expression
> c:\tmp\jbossnative\build\unix\work\mod_cluster-1.3.1.alpha2-snapshot-src-ssl\output\windows-x86\httpd-2.4\include\httpd.h(750) : see declaration of 'server_rec'
> .\mod_proxy_cluster.c(2679) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2680) : error C2143: syntax error : missing ';' before 'type'
> .\mod_proxy_cluster.c(2681) : error C2275: 'proxy_server_conf' : illegal use of this type as an expression
> c:\tmp\jbossnative\build\unix\work\mod_cluster-1.3.1.alpha2-snapshot-src-ssl\srclib\httpd-2.4.7\modules\proxy\mod_proxy.h(186) : see declaration of 'proxy_server_conf'
> .\mod_proxy_cluster.c(2681) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2682) : error C2065: 'sconf' : undeclared identifier
> .\mod_proxy_cluster.c(2683) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2685) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2685) : error C2223: left of '->pool' must point to struct/union
> .\mod_proxy_cluster.c(2685) : error C2198: 'apr_pool_create_ex' : too few arguments for call
> .\mod_proxy_cluster.c(2686) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2687) : error C2065: 'sconf' : undeclared identifier
> .\mod_proxy_cluster.c(2687) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2687) : error C2223: left of '->module_config' must point to struct/union
> .\mod_proxy_cluster.c(2688) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2689) : error C2065: 'sconf' : undeclared identifier
> .\mod_proxy_cluster.c(2689) : warning C4047: '=' : 'int' differs in levels of indirection from 'proxy_server_conf *'
> .\mod_proxy_cluster.c(2691) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2691) : warning C4047: 'function' : 'proxy_server_conf *' differs in levels of indirection from 'int'
> .\mod_proxy_cluster.c(2691) : warning C4024: 'update_workers_node' : different types for formal and actual parameter 1
> .\mod_proxy_cluster.c(2691) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2691) : warning C4047: 'function' : 'server_rec *' differs in levels of indirection from 'int'
> .\mod_proxy_cluster.c(2691) : warning C4024: 'update_workers_node' : different types for formal and actual parameter 3
> .\mod_proxy_cluster.c(2693) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2693) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2693) : error C2223: left of '->next' must point to struct/union
> NMAKE : fatal error U1077: 'C:\cmsc\msvc\bin\i386\cl.EXE' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'C:\cmsc\msvc\bin\nmake.exe' : return code '0x2'
> Stop.
> Building aaa modules ...
> {code}
> One may safely guess that the error lies along these lines:
> {code}
> /native/mod_proxy_cluster/mod_proxy_cluster.c
> server_rec *s2 = main_server;
> void *sconf = s2->module_config;
> proxy_server_conf *conf = (proxy_server_conf *)
> ap_get_module_config(sconf, &proxy_module);
> if (conf) {
> apr_pool_t *pool;
> apr_pool_create(&pool, conf->pool);
> while (s2) {
> sconf = s2->module_config;
> conf = (proxy_server_conf *)
> ap_get_module_config(sconf, &proxy_module);
> update_workers_node(conf, pool, s2, 0);
> s2 = s2->next;
> }
> apr_pool_destroy(pool);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 3 months
[JBoss JIRA] (MODCLUSTER-428) proxy_cluster_child_init in mod_proxy_cluster.c after commit 603d2dac is broken on Windows
by Michal Babacek (JIRA)
[ https://issues.jboss.org/browse/MODCLUSTER-428?page=com.atlassian.jira.pl... ]
Michal Babacek reassigned MODCLUSTER-428:
-----------------------------------------
Assignee: Michal Babacek (was: Jean-Frederic Clere)
> proxy_cluster_child_init in mod_proxy_cluster.c after commit 603d2dac is broken on Windows
> ------------------------------------------------------------------------------------------
>
> Key: MODCLUSTER-428
> URL: https://issues.jboss.org/browse/MODCLUSTER-428
> Project: mod_cluster
> Issue Type: Bug
> Environment: Windows, httpd:2.4.7|apr:v:1.5.0|apu:v:1.5.3|api:v:1.2.1|ssl:v:0.9.8r|zlib:v:1.2.3|iconv:v:1.14|expat:v:1.95.8|pcre:v:8.34
> Reporter: Michal Babacek
> Assignee: Michal Babacek
> Priority: Blocker
>
> It seems that 603d2dac version of mod_proxy_cluster.c is the last one that operates on Windows. More recent versions of the module fail on compilation:
> {code}
> Building slotmem module ...
> 2 File(s) copied
> cl -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_CONSOLE -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_CONSOLE -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -O2 -DPROXY_DECLARE_IMPORT -I. -IC:\tmp\jbossnative\build\unix\work\mod_cluster-1.3.1.Alpha2-SNAPSHOT-src-ssl\output\windows-x86\httpd-2.4\include -I../generators -I../ssl -FoWINXP_X86_DLL_RELEASE\ -FdWINXP_X86_DLL_RELEASE\mod_proxy_cluster-src .\mod_proxy_cluster.c
> mod_proxy_cluster.c
> .\mod_proxy_cluster.c(2679) : error C2275: 'server_rec' : illegal use of this type as an expression
> c:\tmp\jbossnative\build\unix\work\mod_cluster-1.3.1.alpha2-snapshot-src-ssl\output\windows-x86\httpd-2.4\include\httpd.h(750) : see declaration of 'server_rec'
> .\mod_proxy_cluster.c(2679) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2680) : error C2143: syntax error : missing ';' before 'type'
> .\mod_proxy_cluster.c(2681) : error C2275: 'proxy_server_conf' : illegal use of this type as an expression
> c:\tmp\jbossnative\build\unix\work\mod_cluster-1.3.1.alpha2-snapshot-src-ssl\srclib\httpd-2.4.7\modules\proxy\mod_proxy.h(186) : see declaration of 'proxy_server_conf'
> .\mod_proxy_cluster.c(2681) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2682) : error C2065: 'sconf' : undeclared identifier
> .\mod_proxy_cluster.c(2683) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2685) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2685) : error C2223: left of '->pool' must point to struct/union
> .\mod_proxy_cluster.c(2685) : error C2198: 'apr_pool_create_ex' : too few arguments for call
> .\mod_proxy_cluster.c(2686) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2687) : error C2065: 'sconf' : undeclared identifier
> .\mod_proxy_cluster.c(2687) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2687) : error C2223: left of '->module_config' must point to struct/union
> .\mod_proxy_cluster.c(2688) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2689) : error C2065: 'sconf' : undeclared identifier
> .\mod_proxy_cluster.c(2689) : warning C4047: '=' : 'int' differs in levels of indirection from 'proxy_server_conf *'
> .\mod_proxy_cluster.c(2691) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2691) : warning C4047: 'function' : 'proxy_server_conf *' differs in levels of indirection from 'int'
> .\mod_proxy_cluster.c(2691) : warning C4024: 'update_workers_node' : different types for formal and actual parameter 1
> .\mod_proxy_cluster.c(2691) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2691) : warning C4047: 'function' : 'server_rec *' differs in levels of indirection from 'int'
> .\mod_proxy_cluster.c(2691) : warning C4024: 'update_workers_node' : different types for formal and actual parameter 3
> .\mod_proxy_cluster.c(2693) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2693) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2693) : error C2223: left of '->next' must point to struct/union
> NMAKE : fatal error U1077: 'C:\cmsc\msvc\bin\i386\cl.EXE' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'C:\cmsc\msvc\bin\nmake.exe' : return code '0x2'
> Stop.
> Building aaa modules ...
> {code}
> One may safely guess that the error lies along these lines:
> {code}
> /native/mod_proxy_cluster/mod_proxy_cluster.c
> server_rec *s2 = main_server;
> void *sconf = s2->module_config;
> proxy_server_conf *conf = (proxy_server_conf *)
> ap_get_module_config(sconf, &proxy_module);
> if (conf) {
> apr_pool_t *pool;
> apr_pool_create(&pool, conf->pool);
> while (s2) {
> sconf = s2->module_config;
> conf = (proxy_server_conf *)
> ap_get_module_config(sconf, &proxy_module);
> update_workers_node(conf, pool, s2, 0);
> s2 = s2->next;
> }
> apr_pool_destroy(pool);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 3 months
[JBoss JIRA] (MODCLUSTER-428) proxy_cluster_child_init in mod_proxy_cluster.c after commit 603d2dac is broken on Windows
by Michal Babacek (JIRA)
[ https://issues.jboss.org/browse/MODCLUSTER-428?page=com.atlassian.jira.pl... ]
Michal Babacek commented on MODCLUSTER-428:
-------------------------------------------
Relevant commit: [2844e76c|https://github.com/modcluster/mod_cluster/commit/2844e76c396022c...]
> proxy_cluster_child_init in mod_proxy_cluster.c after commit 603d2dac is broken on Windows
> ------------------------------------------------------------------------------------------
>
> Key: MODCLUSTER-428
> URL: https://issues.jboss.org/browse/MODCLUSTER-428
> Project: mod_cluster
> Issue Type: Bug
> Environment: Windows, httpd:2.4.7|apr:v:1.5.0|apu:v:1.5.3|api:v:1.2.1|ssl:v:0.9.8r|zlib:v:1.2.3|iconv:v:1.14|expat:v:1.95.8|pcre:v:8.34
> Reporter: Michal Babacek
> Assignee: Jean-Frederic Clere
> Priority: Blocker
>
> It seems that 603d2dac version of mod_proxy_cluster.c is the last one that operates on Windows. More recent versions of the module fail on compilation:
> {code}
> Building slotmem module ...
> 2 File(s) copied
> cl -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_CONSOLE -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_CONSOLE -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -O2 -DPROXY_DECLARE_IMPORT -I. -IC:\tmp\jbossnative\build\unix\work\mod_cluster-1.3.1.Alpha2-SNAPSHOT-src-ssl\output\windows-x86\httpd-2.4\include -I../generators -I../ssl -FoWINXP_X86_DLL_RELEASE\ -FdWINXP_X86_DLL_RELEASE\mod_proxy_cluster-src .\mod_proxy_cluster.c
> mod_proxy_cluster.c
> .\mod_proxy_cluster.c(2679) : error C2275: 'server_rec' : illegal use of this type as an expression
> c:\tmp\jbossnative\build\unix\work\mod_cluster-1.3.1.alpha2-snapshot-src-ssl\output\windows-x86\httpd-2.4\include\httpd.h(750) : see declaration of 'server_rec'
> .\mod_proxy_cluster.c(2679) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2680) : error C2143: syntax error : missing ';' before 'type'
> .\mod_proxy_cluster.c(2681) : error C2275: 'proxy_server_conf' : illegal use of this type as an expression
> c:\tmp\jbossnative\build\unix\work\mod_cluster-1.3.1.alpha2-snapshot-src-ssl\srclib\httpd-2.4.7\modules\proxy\mod_proxy.h(186) : see declaration of 'proxy_server_conf'
> .\mod_proxy_cluster.c(2681) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2682) : error C2065: 'sconf' : undeclared identifier
> .\mod_proxy_cluster.c(2683) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2685) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2685) : error C2223: left of '->pool' must point to struct/union
> .\mod_proxy_cluster.c(2685) : error C2198: 'apr_pool_create_ex' : too few arguments for call
> .\mod_proxy_cluster.c(2686) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2687) : error C2065: 'sconf' : undeclared identifier
> .\mod_proxy_cluster.c(2687) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2687) : error C2223: left of '->module_config' must point to struct/union
> .\mod_proxy_cluster.c(2688) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2689) : error C2065: 'sconf' : undeclared identifier
> .\mod_proxy_cluster.c(2689) : warning C4047: '=' : 'int' differs in levels of indirection from 'proxy_server_conf *'
> .\mod_proxy_cluster.c(2691) : error C2065: 'conf' : undeclared identifier
> .\mod_proxy_cluster.c(2691) : warning C4047: 'function' : 'proxy_server_conf *' differs in levels of indirection from 'int'
> .\mod_proxy_cluster.c(2691) : warning C4024: 'update_workers_node' : different types for formal and actual parameter 1
> .\mod_proxy_cluster.c(2691) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2691) : warning C4047: 'function' : 'server_rec *' differs in levels of indirection from 'int'
> .\mod_proxy_cluster.c(2691) : warning C4024: 'update_workers_node' : different types for formal and actual parameter 3
> .\mod_proxy_cluster.c(2693) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2693) : error C2065: 's2' : undeclared identifier
> .\mod_proxy_cluster.c(2693) : error C2223: left of '->next' must point to struct/union
> NMAKE : fatal error U1077: 'C:\cmsc\msvc\bin\i386\cl.EXE' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'C:\cmsc\msvc\bin\nmake.exe' : return code '0x2'
> Stop.
> Building aaa modules ...
> {code}
> One may safely guess that the error lies along these lines:
> {code}
> /native/mod_proxy_cluster/mod_proxy_cluster.c
> server_rec *s2 = main_server;
> void *sconf = s2->module_config;
> proxy_server_conf *conf = (proxy_server_conf *)
> ap_get_module_config(sconf, &proxy_module);
> if (conf) {
> apr_pool_t *pool;
> apr_pool_create(&pool, conf->pool);
> while (s2) {
> sconf = s2->module_config;
> conf = (proxy_server_conf *)
> ap_get_module_config(sconf, &proxy_module);
> update_workers_node(conf, pool, s2, 0);
> s2 = s2->next;
> }
> apr_pool_destroy(pool);
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 3 months
[JBoss JIRA] (MODCLUSTER-428) proxy_cluster_child_init in mod_proxy_cluster.c after commit 603d2dac is broken on Windows
by Michal Babacek (JIRA)
Michal Babacek created MODCLUSTER-428:
-----------------------------------------
Summary: proxy_cluster_child_init in mod_proxy_cluster.c after commit 603d2dac is broken on Windows
Key: MODCLUSTER-428
URL: https://issues.jboss.org/browse/MODCLUSTER-428
Project: mod_cluster
Issue Type: Bug
Environment: Windows, httpd:2.4.7|apr:v:1.5.0|apu:v:1.5.3|api:v:1.2.1|ssl:v:0.9.8r|zlib:v:1.2.3|iconv:v:1.14|expat:v:1.95.8|pcre:v:8.34
Reporter: Michal Babacek
Assignee: Jean-Frederic Clere
Priority: Blocker
It seems that 603d2dac version of mod_proxy_cluster.c is the last one that operates on Windows. More recent versions of the module fail on compilation:
{code}
Building slotmem module ...
2 File(s) copied
cl -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_CONSOLE -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -c -nologo -DWIN32 -D_WIN32 -D_WINDOWS -D_WINNT -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -D_WIN32_IE=0x0600 -W3 -D_CONSOLE -D_X86_=1 -O2 -Ob2 -Oy- -Zi -DNDEBUG -D_MT -MD -O2 -DPROXY_DECLARE_IMPORT -I. -IC:\tmp\jbossnative\build\unix\work\mod_cluster-1.3.1.Alpha2-SNAPSHOT-src-ssl\output\windows-x86\httpd-2.4\include -I../generators -I../ssl -FoWINXP_X86_DLL_RELEASE\ -FdWINXP_X86_DLL_RELEASE\mod_proxy_cluster-src .\mod_proxy_cluster.c
mod_proxy_cluster.c
.\mod_proxy_cluster.c(2679) : error C2275: 'server_rec' : illegal use of this type as an expression
c:\tmp\jbossnative\build\unix\work\mod_cluster-1.3.1.alpha2-snapshot-src-ssl\output\windows-x86\httpd-2.4\include\httpd.h(750) : see declaration of 'server_rec'
.\mod_proxy_cluster.c(2679) : error C2065: 's2' : undeclared identifier
.\mod_proxy_cluster.c(2680) : error C2143: syntax error : missing ';' before 'type'
.\mod_proxy_cluster.c(2681) : error C2275: 'proxy_server_conf' : illegal use of this type as an expression
c:\tmp\jbossnative\build\unix\work\mod_cluster-1.3.1.alpha2-snapshot-src-ssl\srclib\httpd-2.4.7\modules\proxy\mod_proxy.h(186) : see declaration of 'proxy_server_conf'
.\mod_proxy_cluster.c(2681) : error C2065: 'conf' : undeclared identifier
.\mod_proxy_cluster.c(2682) : error C2065: 'sconf' : undeclared identifier
.\mod_proxy_cluster.c(2683) : error C2065: 'conf' : undeclared identifier
.\mod_proxy_cluster.c(2685) : error C2065: 'conf' : undeclared identifier
.\mod_proxy_cluster.c(2685) : error C2223: left of '->pool' must point to struct/union
.\mod_proxy_cluster.c(2685) : error C2198: 'apr_pool_create_ex' : too few arguments for call
.\mod_proxy_cluster.c(2686) : error C2065: 's2' : undeclared identifier
.\mod_proxy_cluster.c(2687) : error C2065: 'sconf' : undeclared identifier
.\mod_proxy_cluster.c(2687) : error C2065: 's2' : undeclared identifier
.\mod_proxy_cluster.c(2687) : error C2223: left of '->module_config' must point to struct/union
.\mod_proxy_cluster.c(2688) : error C2065: 'conf' : undeclared identifier
.\mod_proxy_cluster.c(2689) : error C2065: 'sconf' : undeclared identifier
.\mod_proxy_cluster.c(2689) : warning C4047: '=' : 'int' differs in levels of indirection from 'proxy_server_conf *'
.\mod_proxy_cluster.c(2691) : error C2065: 'conf' : undeclared identifier
.\mod_proxy_cluster.c(2691) : warning C4047: 'function' : 'proxy_server_conf *' differs in levels of indirection from 'int'
.\mod_proxy_cluster.c(2691) : warning C4024: 'update_workers_node' : different types for formal and actual parameter 1
.\mod_proxy_cluster.c(2691) : error C2065: 's2' : undeclared identifier
.\mod_proxy_cluster.c(2691) : warning C4047: 'function' : 'server_rec *' differs in levels of indirection from 'int'
.\mod_proxy_cluster.c(2691) : warning C4024: 'update_workers_node' : different types for formal and actual parameter 3
.\mod_proxy_cluster.c(2693) : error C2065: 's2' : undeclared identifier
.\mod_proxy_cluster.c(2693) : error C2065: 's2' : undeclared identifier
.\mod_proxy_cluster.c(2693) : error C2223: left of '->next' must point to struct/union
NMAKE : fatal error U1077: 'C:\cmsc\msvc\bin\i386\cl.EXE' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\cmsc\msvc\bin\nmake.exe' : return code '0x2'
Stop.
Building aaa modules ...
{code}
One may safely guess that the error lies along these lines:
{code}
/native/mod_proxy_cluster/mod_proxy_cluster.c
server_rec *s2 = main_server;
void *sconf = s2->module_config;
proxy_server_conf *conf = (proxy_server_conf *)
ap_get_module_config(sconf, &proxy_module);
if (conf) {
apr_pool_t *pool;
apr_pool_create(&pool, conf->pool);
while (s2) {
sconf = s2->module_config;
conf = (proxy_server_conf *)
ap_get_module_config(sconf, &proxy_module);
update_workers_node(conf, pool, s2, 0);
s2 = s2->next;
}
apr_pool_destroy(pool);
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 3 months