Re: [fpc-devel] fcl-web improvement for apache modules, question

2008-09-19 Thread Mattias Gaertner
On Fri, 19 Sep 2008 10:13:21 -0700 ABorka <[EMAIL PROTECTED]> wrote: > This is how currently the code looks like for the problematic call: > > FCriticalSection.Enter; > try >if (FMaxRequests>0) and (FWorkingWebModules.Count>=FMaxRequests) > then Raise EFPApacheError.Create(SErrTooManyRequests

Re: [fpc-devel] fcl-web improvement for apache modules, question

2008-09-19 Thread ABorka
This is how currently the code looks like for the problematic call: FCriticalSection.Enter; try if (FMaxRequests>0) and (FWorkingWebModules.Count>=FMaxRequests) then Raise EFPApacheError.Create(SErrTooManyRequests); if FIdleWebModules.Count > 0 then begin II := FIdleWebModules.Count

Re: [fpc-devel] fcl-web improvement for apache modules, question

2008-09-19 Thread Michael Van Canneyt
On Fri, 19 Sep 2008, Martin Friebe wrote: > Michael Van Canneyt wrote: > > On Fri, 19 Sep 2008, ABorka wrote > > > Hi Michael, > > > > > > It was created in fpapache.pp in the handlerequest event. > > > > > > M:=MC.create(self); > > > > > > It worked without using the createnew, with the latest

Re: [fpc-devel] fcl-web improvement for apache modules, question

2008-09-19 Thread Michael Van Canneyt
On Fri, 19 Sep 2008, ABorka wrote: > The thing is that for apache modules it is needed to have multiple > webmodules created for simultaneous requests coming from multiple people > browsing the web server. I was creating some pooling for the web modules > in fpapache.pp and simulated 2 concurren

Re: [fpc-devel] fcl-web improvement for apache modules, question

2008-09-19 Thread Martin Friebe
Michael Van Canneyt wrote: On Fri, 19 Sep 2008, ABorka wrote Hi Michael, It was created in fpapache.pp in the handlerequest event. M:=MC.create(self); It worked without using the createnew, with the latest FPC source code. This is weird, because the code before that searches if there is

Re: [fpc-devel] fcl-web improvement for apache modules, question

2008-09-19 Thread ABorka
The thing is that for apache modules it is needed to have multiple webmodules created for simultaneous requests coming from multiple people browsing the web server. I was creating some pooling for the web modules in fpapache.pp and simulated 2 concurrent requests when it happened. If we change the

Re: [fpc-devel] fcl-web improvement for apache modules, question

2008-09-19 Thread Michael Van Canneyt
On Fri, 19 Sep 2008, ABorka wrote: > > Hi Michael, > > It was created in fpapache.pp in the handlerequest event. > > M:=MC.create(self); > > It worked without using the createnew, with the latest FPC source code. This is weird, because the code before that searches if there is an existing i

Re: [fpc-devel] fcl-web improvement for apache modules, question

2008-09-19 Thread ABorka
Hi Michael, It was created in fpapache.pp in the handlerequest event. M:=MC.create(self); It worked without using the createnew, with the latest FPC source code. AB > > > On Thu, 18 Sep 2008, ABorka wrote: > >> Hi, >> >> I'm working on the Apache application (TCustomApacheApplication) >> simul

Re: [fpc-devel] fcl-web improvement for apache modules, question

2008-09-18 Thread Michael Van Canneyt
On Thu, 18 Sep 2008, ABorka wrote: > Hi, > > I'm working on the Apache application (TCustomApacheApplication) simultaneous > request handling. > > When the Apache module tries to create additional instances of the web module > I get > `Error: Duplicate name: A component named "FPWebModule1" al

[fpc-devel] fcl-web improvement for apache modules, question

2008-09-18 Thread ABorka
Hi, I'm working on the Apache application (TCustomApacheApplication) simultaneous request handling. When the Apache module tries to create additional instances of the web module I get `Error: Duplicate name: A component named "FPWebModule1" already exists` How can we create multiple instanc