Thread (23 messages) 23 messages, 3 authors, 2002-08-16

Re: [PATCH] connect() return value.

flat view

From: <hidden>
Date: 2002-08-13 04:44:21

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help