Delphi-Cross-Socket icon indicating copy to clipboard operation
Delphi-Cross-Socket copied to clipboard

Error check in IOCP HandleWrite ?

Open MauricDaniel opened this issue 1 year ago • 0 comments

Hello,

I noticed that I sometimes get error 87 (WSA_INVALID_PARAMETER) in:

procedure TIocpCrossSocket._HandleWrite(const APerIoData: PPerIoData);
begin
//  if (GetLastError = WSA_IO_PENDING) then
//  begin
//    _HandleRead(APerIoData);
//    Exit;
//  end;

  if Assigned(APerIoData.Callback) then
    APerIoData.Callback(APerIoData.CrossData as ICrossConnection, True);
end;

I see that error check is commented out, and was anyway just checking for WSA_IO_PENDING. Should WSA_IO_PENDING just be ignored like it is now, also what about other possible errors ? Or is this still work in progress ? Any comments ?

MauricDaniel avatar Jun 26 '24 12:06 MauricDaniel