Transfer-encoding:chunked data is not sent to the client in its complementary

Solution Unverified - Updated -

Issue

  • When accessing a site using squid problem versions, the origin server content is not fully displayed

    # curl -x localhost:3128 http://192.168.1.1./sample.cgi -v
    *   Trying ::1...
    * TCP_NODELAY set
    * Connected to localhost (::1) port 3128 (#0)
    > GET http://192.168.1.1./sample.cgi HTTP/1.1
    > Host: 192.168.1.123
    > User-Agent: curl/7.61.1
    > Accept: */*
    > Proxy-Connection: Keep-Alive
    >
    < HTTP/1.1 200 OK
    < Date: Mon, 26 Aug 2024 01:03:59 GMT
    < Server: Apache
    < Pragma: no-cache
    < X-frame-options: SAMEORIGIN
    < Content-Type: text/html; charset=UTF-8
    < X-Cache: MISS from localhost.localdomain
    < X-Cache-Lookup: MISS from localhost.localdomain:3128
    < Transfer-Encoding: chunked
    < Via: 1.1 localhost.localdomain (squid/4.15)
    < Connection: keep-alive
    <
    <!DOCTYPE html>
    <html xmlns:fb="http://abcd.sample.com/" lang="ja">
    
    ...snip...
    
    <div id="password-field" class="field field-top-label ">
        <div class="field-header">
    * Connection #0 to host localhost left intact
          <label id="password-label" for="password"> 
    
  • In the case previous versions (squid-4.15-7.module+el8.9.0+19703+a1da7223.x86_64 and squid-5.5-6.el9.x86_64),
    The content is displayed correctly

    # curl -x localhost:3128 http://192.168.1.1./sample.cgi -v
    *   Trying ::1...
    * TCP_NODELAY set
    * Connected to localhost (::1) port 3128 (#0)
    > GET http://192.168.1.1./sample.cgi HTTP/1.1
    > Host: 192.168.1.123
    > User-Agent: curl/7.61.1
    > Accept: */*
    > Proxy-Connection: Keep-Alive
    >
    < HTTP/1.1 200 OK
    < Date: Mon, 26 Aug 2024 01:03:59 GMT
    < Server: Apache
    < Pragma: no-cache
    < X-frame-options: SAMEORIGIN
    < Content-Type: text/html; charset=UTF-8
    < X-Cache: MISS from localhost.localdomain
    < X-Cache-Lookup: MISS from localhost.localdomain:3128
    < Transfer-Encoding: chunked
    < Via: 1.1 localhost.localdomain (squid/4.15)
    < Connection: keep-alive
    <
    <!DOCTYPE html>
    <html xmlns:fb="http://abcd.sample.com/" lang="ja">
    
    ...snip...
    
    /* ]]> */
    </script>
    </body>
    </html>
    
    * Connection #0 to host localhost left intact 
    

Environment

  • Red Hat Enterprise Linux (RHEL) 8
  • from squid-4.15-7.module+el8.9.0+20571+8d39338b.1.x86_64 to squid-4.15-10.module+el8.10.0+21552+1e381b3b.x86_64
  • Red Hat Enterprise Linux (RHEL) 9
  • from squid-5.5-6.el9_3.1.x86_64 to squid-5.5-14.el9.x86_64.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content