Message9371
Logged In: YES
user_id=7887
Martin, EAGAIN is not the same as EWOULDBLOCK. While
EWOULDBLOCK will only be issued in a situation where the
filedescriptor is marked as non-blocking, EAGAIN can happen
at any time, including when requestsize == -1 (read
everything from the fd).
If we're going to handle EAGAIN, we must ensure that the
loop is not broken when it happens, instead of using the
same solution proposed for EWOULDBLOCK.
Do you think we should do that as well?
You're right about EWOULDBLOCK not being available. I'll
include the required #ifdef, and also the suggested comment.
Could you please clarify what you mean in this sentence: "In
any case, please update the documentation to describe the
special cases that you add.". IMO, the proposed patch is not
adding special cases. It's just fixing the algorithm to
behave the same way in all situations. In that case, what
doucmentation should be updated, in your opinion? Or perhaps
you're talking about the proposed e.data solution, which
would be used in other cases like EINTR similars?
Thank you! |
|
Date |
User |
Action |
Args |
2007-08-23 13:59:21 | admin | link | issue521782 messages |
2007-08-23 13:59:21 | admin | create | |
|