Revision: 14444 Author: adrian.chadd Date: Wed Mar 3 18:24:33 2010 Log: Some further documentation about what's going on!
http://code.google.com/p/lusca-cache/source/detail?r=14444 Modified: /branches/LUSCA_HEAD/src/client_side.c ======================================= --- /branches/LUSCA_HEAD/src/client_side.c Wed Mar 3 02:41:30 2010 +++ /branches/LUSCA_HEAD/src/client_side.c Wed Mar 3 18:24:33 2010 @@ -2210,6 +2210,20 @@ log_tags[http->log_type], http->uri); http->out.offset = 0; + + /* + * http->entry is set by a few places: + * + by clientProcessRequest2() if the object is in cache; + * + by a previous call through clientProcessRequest() which has some + * existing response to start abusing? I'm not sure about this; + * + * If http->entry == NULL then there's no existing object to piggy back + * onto; so forwarding must begin. + * + * If http->entry != NULL then there's an existing object to piggy back + * onto; so the store client registration occurs and the object is + * copied in via storeClientCopyHeaders(). + */ if (NULL != http->entry) { storeLockObject(http->entry); if (http->entry->store_status == STORE_PENDING && http->entry->mem_obj) { -- You received this message because you are subscribed to the Google Groups "lusca-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/lusca-commit?hl=en.
