From: rousskov <> Date: Wed, 31 Oct 2007 03:43:45 +0000 (+0000) Subject: Added debugging while investigating bug #2116. X-Git-Tag: SQUID_3_0_STABLE1~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3daaed1abdf9319a23117ffda65b6d9ffa0ac5d0;p=thirdparty%2Fsquid.git Added debugging while investigating bug #2116. --- diff --git a/src/client_side_reply.cc b/src/client_side_reply.cc index f58c2708c7..24a5023d9a 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side_reply.cc,v 1.139 2007/09/07 17:54:52 rousskov Exp $ + * $Id: client_side_reply.cc,v 1.140 2007/10/30 21:43:45 rousskov Exp $ * * DEBUG: section 88 Client-side Reply Routines * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c) @@ -1095,15 +1095,19 @@ clientReplyContext::replyStatus() int done; /* Here because lower nodes don't need it */ - if (http->storeEntry() == NULL) + if (http->storeEntry() == NULL) { + debugs(88, 5, "clientReplyStatus: no storeEntry"); return STREAM_FAILED; /* yuck, but what can we do? */ + } - if (EBIT_TEST(http->storeEntry()->flags, ENTRY_ABORTED)) + if (EBIT_TEST(http->storeEntry()->flags, ENTRY_ABORTED)) { /* TODO: Could upstream read errors (result.flags.error) be * lost, and result in undersize requests being considered * complete. Should we tcp reset such connections ? */ + debugs(88, 5, "clientReplyStatus: aborted storeEntry"); return STREAM_FAILED; + } if ((done = checkTransferDone()) != 0 || flags.complete) { debugs(88, 5, "clientReplyStatus: transfer is DONE");