Re:Re:Re:Re:Re:Planning to change the content of the object.

From: Yee Man Chan <ymc@dont-contact.us>
Date: Sat, 18 May 2002 11:54:20 -0700 (PDT)

As big as you can afford to. The old value 1<<14 is
16KB, so you can only process web objects in their
entirety up to that size.

BTW, it seems to me you are trying to process images.
I don't think you are really decoding the image to
determine what to replace. I think you are better off
using redirector.

Cheers,
Yee Man
--- maer727@sohu.com wrote:
> Thanks, Yee pal!
>
> What is the value should I use? Do you remember the
> range of the value that is sound?
>
> Best regards,
> George Ma
>
> ----- Original Message -----
> From: Yee Man Chan
> To: maer727@sohu.com
> Cc: squid-dev@squid-cache.org
> Subject: Re:Re:Re:Re:Planning to change the content
> of the object.
> Sent: Wed May 15 23:06:39 CST 2002
>
> >
> > --- maer727@sohu.com wrote:
> > > Thanks, Yee pal!
> > >
> > > I find the definition of READ_AHEAD_GAP in
> > > defines.h. Here,
> > >
> > > #define READ_AHEAD_GAP (1<<14)
> > >
> > > What is your method? Can you give me your codes?
>
> > >
> > > Another question, what is the meaning and
> function
> > > of
> > > "READ_AHEAD_GAP"?
> >
> > If I remember correctly, the is the number of
> bytes a
> > MemObject will store in the memory until squid
> push it
> > back to the client. Bigger value allows you to
> process
> > most HTMLs in its entirety. I lost the code after
> I
> > was laid off from my last job. :(
> >
> > Yee Man
> >
> > >
> > > Best regards,
> > > George Ma
> > >
> > > ----- Original Message -----
> > > From: Yee Man Chan
> > > To: maer727@sohu.com
> > > Cc: squid-dev@squid-cache.org
> > > Subject: Re:Re:Re:Planning to change the content
> of
> > > the object.
> > > Sent: Tue May 14 13:15:49 CST 2002
> > >
> > > > The trick I used before is increase the value
> of
> > > > READ_AHEAD_GAP.
> > > >
> > > > Yee Man
> > > > --- maer727@sohu.com wrote:
> > > > > Thanks, Yee pal!
> > > > >
> > > > > The biggest trouble to me is I cannot get
> the
> > > html
> > > > > content of
> > > > > a specific URL. They are often released. The
> > > .jpg
> > > > > and .js are easy
> > > > > to change (I have successfully changed one
> .jpg
> > > to
> > > > > another.)
> > > > >
> > > > > Do you have some suggestions to resolve the
> > > trouble?
> > > > >
> > > > >
> > > > > Another question, what means "I did it
> before
> > > > > myself" in your reply?
> > > > >
> > > > > Best regards,
> > > > > George Ma
> > > > >
> > > > > ----- Original Message -----
> > > > > From: Yee Man Chan
> > > > > To: Henrik Nordstrom ;maer727@sohu.com
> > > > > Cc: squid-dev@squid-cache.org
> > > > > Subject: Re:Re:Planning to change the
> content of
> > > the
> > > > > object.
> > > > > Sent: Tue May 14 06:43:43 CST 2002
> > > > >
> > > > > > I agree George should use redirector if he
> > > > > "modifies"
> > > > > > objects based on their URLs. If he wants
> to
> > > modify
> > > > > > objects based on their content, then he
> needs
> > > to
> > > > > do
> > > > > > some content processing. I did it before
> > > myself.
> > > > > It is
> > > > > > not too hard after you understand the
> > > client_side
> > > > > code
> > > > > > and how MemObject works.
> > > > > >
> > > > > > Cheers,
> > > > > > Yee Man
> > > > > >
> > > > > > --- Henrik Nordstrom <hno@squid-cache.org>
> > > wrote:
> > > > > > > Using the redirector interface it is
> very
> > > > > trivial,
> > > > > > > provided you know
> > > > > > > the URL of the object you want to
> replace,
> > > > > simply
> > > > > > > rewrite the URL to
> > > > > > > one of your new image.
> > > > > > >
> > > > > > > Regards
> > > > > > > Henrik
> > > > > > >
> ......
>

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
Received on Sat May 18 2002 - 12:54:22 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:15:28 MST