Ad Widget

Collapse

Content-length wrong with zlib.output_compression = On

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • simix
    Member
    • Jul 2006
    • 53

    #1

    Content-length wrong with zlib.output_compression = On

    I've just tested current 1.8.4rc1 snapshot and there is a problem with Content-length being wrong if PHP is configured with "zlib.output_compression = On". Content-length calculated in Zabbix is wrong because of the output compression applied later.
    In my situation the following stack doesn't work:
    Apache/PHP -> Pound -> Inet -> Squid -> Firefox

    Attached patch fixed it for me. I've just commented out the Content-length header. A Google search told me that doing this correctly in PHP is not very easy. Does it hurt to remove the Content-length header?
    Attached Files
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    i suspect this might have something to do with javascript caching. of course, breaking compression is not that great... please, report this on the tracker. i guess this was working as expected in 1.8.3, right ?
    Zabbix 3.0 Network Monitoring book

    Comment

    • Palmertree
      Senior Member
      • Sep 2005
      • 746

      #3
      Also had to do the same with https and Apache.

      Comment

      • simix
        Member
        • Jul 2006
        • 53

        #4
        I posted the issue here



        @richlv: Yes it was working with 1.8.3 IIRC. The issue is not directly related to caching but with the new headers being sent. One of them is Cache-Control, which works fine, another is Content-length which can not be sent that way if output compression is on.

        Comment

        • Aly
          ZABBIX developer
          • May 2007
          • 1126

          #5
          Should be fixed.
          Zabbix | ex GUI developer

          Comment

          Working...