create new tag
, view all tags

Bug: Including an HTML file takes forever

When INCLUDE'ing an html document, twiki/lib/TWiki/Net.pm connects to the web server and sends an HTTP/1.1 type request. of the HTTP/1.1 spec states that the server may keep the connection open unless the request header contains a "Connection: close" line.

If this header is not sent, twiki hangs reading the response until the connection eventually times out, which can take 20 seconds or more.

The solution is to add the line: $req .= "Connection: close\r\n"; to the request before sending it to the web server.

Test case



TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin
Server OS: RedHat Linux 7.3, 2.4.20-20.7
Web server: Apache 1.3.27
Perl version: 5.8.0
Client OS: RedHat Linux 7.3, 2.4.20-20.7
Web Browser: Mozilla 1.4

-- JRobertRay - 22 Sep 2003

Follow up

It's likely that the patch supplied in ProxiedIncludesBrokenImplementationBug also fixes this problem. (Suggested in email by MichaelSparks)

-- JohnTalintyre - 28 Sep 2003

Fix record

I've applied the patch supplied by MS in ProxiedIncludesBrokenImplementationBug to CVS. Whilst a different solution to the one above, I expect it will solve the reported problem. I've therefore marked this a BugResolved. If it isn't fixed, then please move back to BugReport.

-- JohnTalintyre - 28 Sep 2003

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2003-12-20 - MichaelSparks
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.