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. 8.1.2.1 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
%INCLUDE{"http://some.server/with/persistent/connections"}%
Environment
--
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