Merge pull request #1 from mca0815/fix-invalid-frame-continuation
fixed "Invalid frame continuation" exception when ping or pong frames a…
This commit is contained in:
commit
e5164f0b49
1 changed files with 19 additions and 4 deletions
|
@ -790,15 +790,30 @@ begin
|
|||
wdcPing:
|
||||
begin
|
||||
WriteData(iaReadBuffer, wdcPong); //send pong + same data back
|
||||
|
||||
//ping received, ignore while were are receiving fragmented frames
|
||||
if (lFirstDataCode in [wdcText, wdcBinary]) then
|
||||
begin
|
||||
bFIN := False;
|
||||
end
|
||||
else
|
||||
begin
|
||||
lFirstDataCode := lDataCode;
|
||||
//bFIN := False; //ignore ping when we wait for data?
|
||||
end;
|
||||
end;
|
||||
wdcPong:
|
||||
begin
|
||||
//pong received, ignore;
|
||||
//pong received, ignore while were are receiving fragmented frames
|
||||
if (lFirstDataCode in [wdcText, wdcBinary]) then
|
||||
begin
|
||||
bFIN := False;
|
||||
end
|
||||
else
|
||||
begin
|
||||
lFirstDataCode := lDataCode;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end
|
||||
else
|
||||
Break;
|
||||
|
|
Loading…
Reference in a new issue