sorry, there are a wrong,

while(FCGX_Accept(&request.in,&request.out,&request.err,&request.envp)

shoulde be:

while(FCGX_Accept_r(&request) == 0)

在 08-2-13,Ang FAN<[EMAIL PROTECTED]> 写道:
> Hi,
> Thank you,but I do that as you say,the memory still keep growing.
>
> 你好,用中文吧,我按你说的改了,但是内存(apache)还是不停的长,我的程序是这样写的,你看看有什么问题吗?
>
> int main (void)
> {
>         streambuf * cin_streambuf  = cin.rdbuf();
>         streambuf * cout_streambuf = cout.rdbuf();
>         streambuf * cerr_streambuf = cerr.rdbuf();
>
>         FCGX_Request request;
>         FCGX_Init();
>         FCGX_InitRequest(&request, 0, 0);
>
>         DWORD dwPrePrcoess = 0;
>
>          
> while(FCGX_Accept(&request.in,&request.out,&request.err,&request.envp)
> == 0)
>         {
>
>                 fcgi_streambuf cin_fcgi_streambuf(request.in);
>                 fcgi_streambuf cout_fcgi_streambuf(request.out);
>                 fcgi_streambuf cerr_fcgi_streambuf(request.err);
> #if HAVE_IOSTREAM_WITHASSIGN_STREAMBUF
>                 cin  = &cin_fcgi_streambuf;
>                 cout = &cout_fcgi_streambuf;
>                 cerr = &cerr_fcgi_streambuf;
> #else
>                 cin.rdbuf(&cin_fcgi_streambuf);
>                 cout.rdbuf(&cout_fcgi_streambuf);
>                 cerr.rdbuf(&cerr_fcgi_streambuf);
> #endif
>                 ResultState nResult = HandleRequest( 
> &request,paramData,strErrcode);
>
>                 cout << "Content-type: text/html\r\n\r\n";
>                 if(strErrcode.IsEmpty())
>                         cout << ResultStateText[nResult];
>                 else
>                         cout << CStringA(strErrcode);
>
>                 FCGX_Free(&request,TRUE);
>         }
>
> #if HAVE_IOSTREAM_WITHASSIGN_STREAMBUF
>         cin  = cin_streambuf;
>         cout = cout_streambuf;
>         cerr = cerr_streambuf;
> #else
>         cin.rdbuf(cin_streambuf);
>         cout.rdbuf(cout_streambuf);
>         cerr.rdbuf(cerr_streambuf);
> #endif
>         return 0;
> }
>
> 在 08-2-13,潘庆峰<[EMAIL PROTECTED]> 写道:
> > 1. upgrade your mod_fcgid to 2.2
> > 2. mod_fcgid 2.2 support a new configuration "MaxRequestInMem" (default
> > 64k), every http request longer than 64k will swap to tmp file
> >
> >
> >
> >
> > 在2008-02-13,"Ang FAN" <[EMAIL PROTECTED]> 写道:
> >
> > ---------- Forwarded message ----------
> > From: Ang FAN <[EMAIL PROTECTED]>
> > Date: 2008-2-13 11:49
> > Subject: Re: confirm
> > 1fdecc4c927c4c9e3e26a2a2bc779e5cc2c36c12
> > To: [EMAIL PROTECTED]
> >
> >
> > Hi,
> > I used fcgid as a file uploader server modul(window 2003 server),but
> > if the files are big, it will take the apache memory grow up until the
> >  apache server crash, why?
> >
> > thanks!
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Mod-fcgid-users mailing list
> > Mod-fcgid-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users
> >
> >
> >
> > ________________________________
> >  网 易 有 道 英 汉 电 子 词 典 获 2 0 0 7 年 " 电 脑 报 " 免 费 软 件 最 佳 功 能 奖
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Mod-fcgid-users mailing list
> > Mod-fcgid-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users
> >
> >
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users

Reply via email to