On 12/15/2005 09:35 PM, Brian Akins wrote:
> Plüm wrote:
>  This would give the client the
> 
>> impression that the response had been correct and complete (provided
>> that the reponse was in chunked encoding). If the client is a proxy
>> this could lead to a cache poisoning. 
> 
> 
> THis is why I favor closing the connection to the client.  It's simple
> and the client will know that something bad happen and, usually, retry.

Yes, but we need to ensure that in the case of chunked encoding the client does
not get the impression that everything worked well. From my perspective this can
only be reached by

- not sending the zero chunk
- closing the connection

If we send the zero chunk the client has no possibility to find out that 
something
went wrong.
I think we have to simulate to the client what happened to us on the backend:
A broken connection.

Regards

Rüdiger


Reply via email to