[ 
https://issues.apache.org/jira/browse/TS-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13281956#comment-13281956
 ] 

Brian Geffon commented on TS-1004:
----------------------------------

Ok, got it, your patch will work if we also make sure to remove the 
Content-Length header if it's already been added:

{noformat}
    if ( s->client_info.receive_chunked_response ) {
      s->hdr_info.trust_response_cl = false;

      // And delete the header if it's already been added...
      heads->field_delete(MIME_FIELD_CONTENT_LENGTH, MIME_LEN_CONTENT_LENGTH);
    }
{noformat}

Patch uploading coming, Otto does that look good to you? If so, I'll get it 
committed.
                
> transformation plugins cause connection close when content length is not 
> known ahead
> ------------------------------------------------------------------------------------
>
>                 Key: TS-1004
>                 URL: https://issues.apache.org/jira/browse/TS-1004
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP, Plugins
>    Affects Versions: 3.0.1
>            Reporter: Otto van der Schaaf
>            Assignee: Otto van der Schaaf
>             Fix For: 3.1.1, 3.0.3
>
>         Attachments: chunk_transform_response.diff, no_cl_when_chunking.diff
>
>
> whenever the null transform plugin (or gzip) is executed, ATS will force the 
> ua connection closed. 
> when the user agent supports it, sending a chunked response w/ keepalive 
> enabled would be preferred i guess
> i'll add a patch for review.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to