Can you please file a bug report on this? Preferably with a stack trace
of the crash if possible..

also if this 2.HEAD was from before 22/7 then please test again as there
was a number of very related fixes on the 21/7.

The second change looks wrong and should be a fwdFail..

The first change looks fine.

Regards
Henrik

On tis, 2008-08-05 at 10:11 +0400, Alexander V. Lukyanov wrote:
> Hello!
> 
> Some time ago I had core dumps just after these messages:
>       Short response from ...
>       httpReadReply: Excess data from ...
> 
> I beleave this patch fixes these problems.
> 
> Index: http.c
> ===================================================================
> RCS file: /squid/squid/src/http.c,v
> retrieving revision 1.446
> diff -u -p -r1.446 http.c
> --- http.c    25 Jun 2008 22:11:20 -0000      1.446
> +++ http.c    5 Aug 2008 06:05:29 -0000
> @@ -755,6 +757,7 @@ httpAppendBody(HttpStateData * httpState
>      /* Is it a incomplete reply? */
>      if (httpState->chunk_size > 0) {
>       debug(11, 2) ("Short response from '%s' on port %d. Expecting %" 
> PRINTF_OFF_T " octets more\n", storeUrl(entry), comm_local_port(fd), 
> httpState->chunk_size);
> +     fwdFail(httpState->fwd, errorCon(ERR_INVALID_RESP, HTTP_BAD_GATEWAY, 
> httpState->fwd->request));
>       comm_close(fd);
>       return;
>      }
> @@ -774,6 +777,7 @@ httpAppendBody(HttpStateData * httpState
>           ("httpReadReply: Excess data from \"%s %s\"\n",
>           RequestMethods[orig_request->method].str,
>           storeUrl(entry));
> +     fwdComplete(httpState->fwd);
>       comm_close(fd);
>       return;
>      }

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to