mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-31 01:30:40 +02:00
* 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:
parent
464e40bfd9
commit
a756a2afac
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user