RE: Cookie Patch for Flood

2002-01-03 Thread Chris Williams
Yes it is.  I will review those links for the next time.
Thanks!
Chris

> -Original Message-
> From: Aaron Bannert [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 03, 2002 9:56 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Cookie Patch for Flood
>
>
> On Thu, Jan 03, 2002 at 09:43:48AM -0500, Chris Williams wrote:
> > I found a bug in flood_round_robin.c.  The apr_pstrcat on line
> 146 should
> > have NULL as the last argument.  I am new to submitting patches so if
> > someone could let me know the correct way to do it, I will
> repost.  Without
> > this, you get a bunch of garbage in the cookie string if there
> is more that
> > one cookie.
>
> Thanks for the find! Typically patches are posted as context diffs. If
> you can manage it with your mail, it's best to attach the patches inline
> (as opposed to a mime/uuencoded attachment).
>
> There's some good info on this site for developers: http://dev.apache.org/
> You'll be particular interested in: http://dev.apache.org/patches.html
>
> So is this what you meant?
>
>
> Index: flood_round_robin.c
> ===
> RCS file: /home/cvs/httpd-test/flood/flood_round_robin.c,v
> retrieving revision 1.19
> diff -u -u -r1.19 flood_round_robin.c
> --- flood_round_robin.c   3 Oct 2001 01:24:01 -   1.19
> +++ flood_round_robin.c   3 Jan 2002 14:55:43 -
> @@ -143,7 +143,7 @@
>  while (cook)
>  {
>  if (cook != p->cookie)
> -cookies = apr_pstrcat(p->pool, cookies, ";");
> +cookies = apr_pstrcat(p->pool, cookies, ";", NULL);
>
>  cookies = apr_pstrcat(p->pool, cookies, cook->name, "=",
>cook->value, NULL);
>
>
>



Cookie Patch for Flood

2002-01-03 Thread Chris Williams
I found a bug in flood_round_robin.c.  The apr_pstrcat on line 146 should
have NULL as the last argument.  I am new to submitting patches so if
someone could let me know the correct way to do it, I will repost.  Without
this, you get a bunch of garbage in the cookie string if there is more that
one cookie.

Thanks
Chris



Quick flood question...

2002-01-02 Thread Chris Williams
I am hacking around in flood to change how it handles cookies.  What I am
trying to do is have the current cookie list freed once a farmer completes a
round.  I think I found where to do this in round_robin_loop_condition.  My
question is how to free the cookie struct since it is using the apr_pcalloc
to get the memory.  I could just NULL out rp->cookie but will that cause
memory growth in the long run?  Any suggestions would be great.
Thanks!
Chris



Question about Flood

2001-11-15 Thread Chris Williams
I would like to add some functionality to Flood but I want to make sure you
can't already do it.  What I would like to do is have one urllist but have
some portions of those URL's based on information from each farmer.  An
example would be to use the farmer name as part of a URL request.  Is there
any way to do this currently and if not, are there any plans.  If this can't
be done, can anyone give me some pointers of where to start looking in the
code.  I was thinking I could do something in the round_robin_get_net_url
call but I don't see any pointers to the farmer data.
Any suggestions would be great.
Thanks
Chris