File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 1
- '2.1.5292 '
1
+ '2.1.5293 '
Original file line number Diff line number Diff line change @@ -3195,13 +3195,18 @@ function THttpAsyncConnection.OnRead: TPollAsyncSocketOnReadWrite;
3195
3195
result := soClose;
3196
3196
end ;
3197
3197
end ;
3198
- if fPipelinedWrite and
3199
- (fWR.Len > 128 shl 10 ) then // flush more than 128KB of pending output
3200
- if FlushPipelinedWrite <> soContinue then
3201
- result := soClose;
3202
- if (result <> soContinue) or
3203
- (fHttp.State in [hrsGetCommand, hrsUpgraded]) then
3204
- break; // rejected or upgraded
3198
+ if fPipelinedWrite then
3199
+ begin
3200
+ if fWR.Len > 128 shl 10 then // flush more than 128KB of pending output
3201
+ if FlushPipelinedWrite <> soContinue then
3202
+ result := soClose;
3203
+ if (result <> soContinue) or
3204
+ (fHttp.State in [hrsUpgraded]) then
3205
+ break; // rejected or upgraded
3206
+ end
3207
+ else if (result <> soContinue) or
3208
+ (fHttp.State in [hrsGetCommand, hrsUpgraded]) then
3209
+ break; // authenticated, rejected or upgraded
3205
3210
end ;
3206
3211
if fPipelinedWrite then
3207
3212
if FlushPipelinedWrite <> soContinue then
You can’t perform that action at this time.
0 commit comments