Re: Only one filter created for all client sock threads

Yves Lafon wrote:

> On Fri, 13 Oct 2000, Benoit Mahe wrote:
>
> >
> > > We have written a ResourceFilter for Jigsaw, which is running as a proxy. We
> > > have noticed that only one instance of our filter is created and shared
> > > between all the http-server-socket-client threads. We are concerned that our
> > > filter has now become a bottle neck for all requests and replies passing
> > > through the proxy.
> > >
> > > Is there any way to get Jigsaw to allocate a separate filter instance for
> > > each of the socket clients it creates?
>
> Well one way of doing it is having a filter creating an instance of your
> filter, add it to the request context, and have the filter calling the
> filter taken from the request context both in the input and output. That
> way the only instance of the filter is doing pretty simple and fast
> things.

That's what I call "make it unsynchronized" ;-)

Benoit -

--
- Benoît Mahé -------------------------------------------------------
                      World Wide Web Consortium   (W3C)
                    Architecture domain - Jigsaw Engineer

                http://www.w3.org/People/Mahe  - bmahe@w3.org
---------------------------------------------------------------------

Received on Friday, 13 October 2000 11:00:01 UTC