Re: Only one filter created for all client sock threads

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.

-- 
Yves Lafon - W3C / Jigsaw - XML Protocol - HTTP
"Baroula que barouleras, au tiéu toujou t'entourneras."

Received on Friday, 13 October 2000 10:26:40 UTC