https://bz.apache.org/bugzilla/show_bug.cgi?id=59542
Bug ID: 59542
Summary: mod_http2 somehow breaks some mod_lua processing
Product: Apache httpd-2
Version: 2.4.20
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_http2
Assignee: [email protected]
Reporter: [email protected]
Created attachment 33843
--> https://bz.apache.org/bugzilla/attachment.cgi?id=33843&action=edit
logs
Using gentoo, I got the latest (2.4.20) apache, with latest mod_lua ( compiled
separately ) and mod_http2 ( compiled with apache ).
I got the following 10_mod_lua.conf
```
<IfDefine LUA>
LoadModule lua_module modules/mod_lua.so
AddHandler lua-script .lua
LogLevel mod_lua.c:debug
LuaScope thread
LuaCodeCache stat
LuaRoot /etc/apache2/lua_scripts/
LuaHookAccessChecker authcheck_hook.lua authcheck_hook
</IfDefine>
```
41_mod_http2.conf
```
<IfDefine SSL>
<IfModule http2_module>
LogLevel http2:debug
Protocols h2 http/1.1
</IfModule>
</IfDefine>
```
and the authcheck_hook.lua script
```
processhostnames = { 'd3xbucharest.go.ro', '192.168.1.95', 'd3xt3r01.tk' }
function authcheck_hook(r)
if r.uri == "/favicon.ico" then return apache2.DECLINED end
processhostname = false
for key,value in pairs(processhostnames) do
if r.hostname == value then
processhostname = true
break
end
end
if not processhostname then
return apache2.DECLINED
end
return apache2.OK
end
```
Disabling either mod_lua or mod_http2 works.
I've created a test page like this:
index.php
```
IT WORKS
<?php
if(isset($_GET['frame'])){
echo "FRAME ".$_GET['frame'];
die();
}
for($i=0;$i<30;$i++){
echo '<iframe src="index.php?frame='.$i.'"></iframe>';
}
```
Nothing special, just some frames with text. The result is that some frames
load, some show an internal error .. some crash completely. Not always in the
same order or on the same frames.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]