Browse Source

* Patch from Dmitriy A. Voroshin to handle clsoed named pipe more gracefully. (bug ID 29203)

git-svn-id: trunk@32724 -
michael 9 years ago
parent
commit
a756a2afac
1 changed files with 7 additions and 0 deletions
  1. 7 0
      packages/fcl-web/src/base/custfcgi.pp

+ 7 - 0
packages/fcl-web/src/base/custfcgi.pp

@@ -384,6 +384,13 @@ begin
       begin
       // TODO : Better checking on ErrorCode
       R.FKeepConnectionAfterRequest:=False;
+
+{$ifdef windowspipe}
+      case ErrorCode of
+        ERROR_BROKEN_PIPE, ERROR_NO_DATA : Exit; //No error here. Server cancel pipe
+      end;
+{$endif}
+
       TFCgiHandler.DoError(SErrWritingSocket,[ErrorCode]);
       end;
     Inc(P,BytesWritten);