W3C home > Mailing lists > Public > www-jigsaw@w3.org > September to October 2000

Re: Only one filter created for all client sock threads

From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
Date: Fri, 13 Oct 2000 16:59:55 +0200
Message-ID: <39E7236B.4441FAE8@sophia.inria.fr>
To: Yves Lafon <ylafon@w3.org>
CC: Sheldon Conaty <sconaty@hotmail.com>, www-jigsaw@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:34 GMT