r10207 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10206‎ | r10207 | r10208 >
Date:17:27, 19 July 2005
Author:vibber
Status:old
Tags:
Comment:
Send 'Connection: Close' header so HTTP 1.1 clients will close sockets properly.
Should fix problem with running out of open files due to CLOSE_WAIT state TCP sockets.
Modified paths:
  • /trunk/mwsearch/Daemon/Worker.cs (modified) (history)

Diff [purge]

Index: trunk/mwsearch/Daemon/Worker.cs
@@ -183,6 +183,7 @@
184184 private void SendHeaders(int code, string message) {
185185 SendOutputLine("HTTP/1.1 " + code + " " + message);
186186 SendOutputLine("Content-Type: text/plain");
 187+ SendOutputLine("Connection: Close");
187188 SendOutputLine("");
188189 headersSent = true;
189190 }

Status & tagging log