You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Andreas Achtzehn <ac...@linux-society.de> on 2000/03/17 17:08:45 UTC

config/5896: multipart-messages and squid-proxy-server

>Number:         5896
>Category:       config
>Synopsis:       multipart-messages and squid-proxy-server
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Mar 17 08:10:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     achtzehn@linux-society.de
>Release:        1.3.9
>Organization:
apache
>Environment:
SuSE Linux 6.3
>Description:
If apache sends a multipart-content (multipart/x-mixed-replace) in an endless loop generated by a cgi-script it doesn't stop sending it even if the user hits "stop" in his browser. This problem doesn't occure if the user has a direct connection to the web-server. It only occurs when a squid-server is used for connection. 
Unfortunately the stream is sent to the proxy-server as fast as possible and if both servers are sharing one subnet (or are connected by a very fast line) it causes the proxy-server to lockup. 
>How-To-Repeat:
This is the script I used:
#!/usr/bin/perl
print "Content-Type: multipart/x-mixed-replace;boundary=myboundary\n\n";
print "--myboundary";
while (true) {
      print "\nContent-Type: image/gif\n\n";
      open(PIC,"webcamimage.gif") || die "Could not open file : $!\n";
      while (<PIC>) {
        print $_;
      }
      close(PIC);
      print "\n--myboundary";
   }
}
print "--\n";
>Fix:
Apache has to recognize the squid-proxy and validate that the user is still "wanting" that file. If not, it has to terminate the script.
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]