소스 검색

* Attempt to fix Bug ID #25940

git-svn-id: trunk@27493 -
michael 11 년 전
부모
커밋
12e9772111
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      packages/fcl-web/src/base/custcgi.pp

+ 4 - 1
packages/fcl-web/src/base/custcgi.pp

@@ -352,7 +352,10 @@ begin
             Sleep(ContentReadRetryInterval);
           end
         else
+          begin
+          RetryCount:=0; // We got data, so let's reset this.
           AbortRead:=DoContentRead(PByte(@S[BytesRead+1]),A);
+          end;
         BytesRead:=BytesRead+a;
       until (BytesRead>=Cl) or (AbortRead);
       // In fact the request is incomplete, but this is not the place thrown an error for that
@@ -373,7 +376,7 @@ end;
 
 function TCGIRequest.DoContentRead(B: PByte; Len: Integer): Boolean;
 begin
-  Result:=True;
+  Result:=False;
   if Assigned(FOnContentRead) then
     FOnContentRead(Self,B,Len,Result);
 end;