Skip to content

return for a timeout is negative 4 #970

@excaliburtb

Description

@excaliburtb

return_code = OS_GenericRead_Impl(&token, buffer, nbytes, timeout);

Not sure which layer of abstraction to report this but the comment states that a timeout should return 0. However, on Linux/portable BSD... the eventual call to OS_DoSelect is returning OS_ERROR_TIMEOUT (-4) and flowing that all the to the OS_TimedRead API. I would prefer it to be "caught" and returned as 0 at some point but.. more than anything.. just need the comment to match.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions