Hello!
> it returns -EISCONN. This behavior is consistent in all operating
> systems which I have tested, which include the following:
This is very strange. Linux should return success once.
Probably, I should explain why I ask this. This is a necessary
element of implementation of restartable connect(). If connect()
is restarted after signal, it should return success on connected
socket sometimes rather than -EISCONN.
> On Linux (v 2.4.18):
>
> read() returns 0 with an errno of 115. On Linux 115 corresponds to
> -EINPROGRESS.
I am sorry, this machine is not running Linux.
Zero length read() always returns zero, not depending of socket state.
> Yep. Though I would really like it if it conforms to what the rest of
> the Unices does with that behavior.
Non-sense. We are not going to emulate pathological cases.
> So, we can agree
Did we argue about this? :-)
Alexey
|