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

git-svn-id: trunk@32724 -
This commit is contained in:
michael 2015-12-26 13:43:20 +00:00
parent 464e40bfd9
commit a756a2afac

View File

@ -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);