version 1.77, 1998/10/30 01:15:56
|
version 1.78, 1998/11/01 15:52:00
|
Line 945 PUBLIC int terminate_handler (HTRequest
|
Line 945 PUBLIC int terminate_handler (HTRequest
|
mr->other_docs++; |
mr->other_docs++; |
} |
} |
|
|
|
if (!(mr->flags & MR_BFS)) { |
|
|
|
/* Delete this thread */ |
|
Finger_delete(finger); |
|
|
|
/* Should we stop? */ |
|
if (mr->cnt <= 0) { |
|
if (SHOW_QUIET(mr)) HTTrace(" Everything is finished...\n"); |
|
Cleanup(mr, 0); /* No way back from here */ |
|
} |
|
} |
|
|
if (SHOW_QUIET(mr)) HTTrace(" %d outstanding request%s\n", mr->cnt, mr->cnt == 1 ? "" : "s"); |
if (SHOW_QUIET(mr)) HTTrace(" %d outstanding request%s\n", mr->cnt, mr->cnt == 1 ? "" : "s"); |
return HT_OK; |
return HT_OK; |
|
|
Line 1159 PUBLIC void HText_beginAnchor (HText * t
|
Line 1171 PUBLIC void HText_beginAnchor (HText * t
|
} |
} |
|
|
/* Test whether we already have a hyperdoc for this document */ |
/* Test whether we already have a hyperdoc for this document */ |
if (mr->flags & MR_LINK && match && dest_parent |
if (mr->flags & MR_LINK && match && dest_parent && follow && !hd) { |
&& follow && !hd ) { |
if (mr->flags & MR_BFS) { |
|
nhd->method = METHOD_HEAD; |
nhd->method = METHOD_HEAD; |
HTQueue_enqueue(mr->queue, (void *) nhd); |
HTQueue_enqueue(mr->queue, (void *)nhd); (mr->cq)++; |
(mr->cq)++; |
if(mr->ndoc > 0) mr->ndoc--; |
if(mr->ndoc > 0) mr->ndoc--; |
|
} else { |
|
Finger * newfinger = Finger_new(mr, dest_parent, METHOD_GET); |
|
HTRequest * newreq = newfinger->request; |
|
HTRequest_setParent(newreq, referer); |
|
if (check || depth >= mr->depth) { |
|
if (SHOW_QUIET(mr)) HTTrace("loading at depth %d using HEAD\n", depth); |
|
HTRequest_setMethod(newreq, METHOD_HEAD); |
|
} else { |
|
if (SHOW_QUIET(mr)) HTTrace("loading at depth %d\n", depth); |
|
} |
|
if (HTLoadAnchor((HTAnchor *) dest_parent, newreq) != YES) { |
|
if (SHOW_QUIET(mr)) HTTrace("not tested!\n"); |
|
Finger_delete(newfinger); |
|
} |
|
} |
|
|
} else { |
} else { |
if (SHOW_QUIET(mr)) HTTrace("............ does not fulfill constraints\n"); |
if (SHOW_QUIET(mr)) HTTrace("............ does not fulfill constraints\n"); |