netdev
[Top] [All Lists]

Re: [PATCH] connect() return value.

To: glee@xxxxxxxxxxxxxxx (Geoffrey Lee)
Subject: Re: [PATCH] connect() return value.
From: kuznet@xxxxxxxxxxxxx
Date: Tue, 13 Aug 2002 08:44:21 +0400 (MSD)
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20020813022115.GA11627@xxxxxxxxxxxxxxxx> from "Geoffrey Lee" at Aug 13, 2 12:21:15 pm
Sender: owner-netdev@xxxxxxxxxxx
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


<Prev in Thread] Current Thread [Next in Thread>