Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error check in IOCP HandleWrite ? #140

Open
MauricDaniel opened this issue Jun 26, 2024 · 0 comments
Open

Error check in IOCP HandleWrite ? #140

MauricDaniel opened this issue Jun 26, 2024 · 0 comments

Comments

@MauricDaniel
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant