[Mod_gzip] Cleanup and Init in Mod_gzip
Tejas Sumant
mod_gzip@lists.over.net
Tue, 16 Mar 2004 20:47:53 +0530
This is a multi-part message in MIME format.
------=_NextPart_000_025F_01C40B97.F3FC1E10
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi All,
Q. 1) I want to call my cleanup function when then module gets
unloaded or at resrtart or shutdown of Apache server.
Please can anyone tell me, where should I call my cleanup =
function
from?
Q. 2) mod_gzip_init function gets called twice when server starts.
I want to call my init funtion from within mod_gzip_init.
As mod_gzip_init is getting called twice my init function is=20
getting called twice, which is undesirable.
I declared a static variable with initial value 0 and incremented =
for each call. But this technique also failed. Please can anyone=20
tell me solution.
Tejas
------=_NextPart_000_025F_01C40B97.F3FC1E10
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>Hi All,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Q. 1) I want to call my cleanup =
function when then=20
module gets</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2> unloaded=20
or at resrtart or shutdown of Apache server.</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2> =20
Please can anyone tell me, where should I call my cleanup=20
function</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2> =20
from?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Q. 2) mod_gzip_init function gets =
called twice when=20
server starts.</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2> I want=20
to call my init funtion from within mod_gzip_init.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> As =
mod_gzip_init is getting called twice=20
my init function </FONT><FONT face=3DArial size=3D2>is =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =
getting called=20
twice, which is undesirable.</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2> I=20
declared a static variable with initial value 0 and incremented=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
for</FONT><FONT face=3DArial size=3D2> each call. But this technique =
also failed.=20
Please can anyone </FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
tell </FONT><FONT face=3DArial size=3D2>me solution.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial =
size=3D2>Tejas</FONT></DIV></FONT></DIV></DIV></BODY></HTML>
------=_NextPart_000_025F_01C40B97.F3FC1E10--