Skip to content

Error check in IOCP HandleWrite ? #140

Open
@MauricDaniel

Description

@MauricDaniel

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions