> I guess you can have an entry in the "servers" list but it may not have any
> active connections to those servers, am I correct?

Correct.  Look at the ``connections'' column.

> I am looking for a few different things:

> 1) Cache hit/misses.  I guess it does not exist but perhaps you can point to
> me where in the code I can determine this?  Basically I want to know whether
> I had to get the data from the server or if it already existed in cache.
> Where is this determined?

httpClientNoticeRequest.  Note however that what makes this tricky is
that on a miss we will go through this function twice -- the first
time we'll get a miss or a revalidation, the second time a hit.

Note also that a hit does not mean that we will get all of the data.

> 2) Number of connections to the servers, I guess this is part of the
> "servers" list

Yep.

> 3) Number of active connections to clients, where would I find that?

No way to know that -- a client connection is merely represented by
a continuation in Polpo's scheduler.  I'd simply add a counter that
you'd increment in httpAccept and decrement in httpClientFinish.

                                        Juliusz

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users

Reply via email to