login
Header Space

 
 

Re: sockets affected by IPsec always block (2.6.23)

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Miller <davem@...>
Cc: <herbert@...>, <simon@...>, <linux-kernel@...>, <netdev@...>
Date: Thursday, December 6, 2007 - 4:49 am

Am Donnerstag, 6. Dezember 2007 03:25 schrieb David Miller:


Of course not. Applications must not care about what happens at the transport 
layer.


... and as O_CREAT on open() isn't specifically documented to apply to 
filenames starting with 'a', it is perfectly normal that "echo x >ash" always 
fails since 2.6.22. To revert to the old behaviour, please do "echo 1 

Ok, irony aside. Just have a look at
http://www.opengroup.org/onlinepubs/009695399/functions/connect.html (I hope 
009695399 is not a personalition cookie ;-)

"If the connection cannot be established immediately and O_NONBLOCK is set for 
the file descriptor for the socket, connect() shall fail and set errno to 
[EINPROGRESS], but the connection request shall not be aborted, and the 
connection shall be established asynchronously."

I think the words "shall fail" and "immediately" are quite clear.


Well, the only reason this doesn't break on a daily basis is because the code 
isn't in the kernel that long and not many people run applications on an 
IPSEC gateway. This will change if kernel based IPSEC is used for roadwarrior 
connections or dnssec based anonymous IPSEC someday. Trust me, you will 
revert this misbehaviour in -stable then.

For some real life applications that break when nonblocking connect() blocks, 
please look f.e. at squid or mozilla firefox.

Stefan
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
sockets affected by IPsec always block (2.6.23), Simon Arlott, (Tue Dec 4, 2:53 pm)
Re: sockets affected by IPsec always block (2.6.23), Herbert Xu, (Tue Dec 4, 8:12 pm)
Re: sockets affected by IPsec always block (2.6.23), David Miller, (Wed Dec 5, 2:30 am)
Re: sockets affected by IPsec always block (2.6.23), Herbert Xu, (Wed Dec 5, 2:51 am)
Re: sockets affected by IPsec always block (2.6.23), Stefan Rompf, (Wed Dec 5, 2:39 pm)
Re: sockets affected by IPsec always block (2.6.23), David Miller, (Wed Dec 5, 10:25 pm)
Re: sockets affected by IPsec always block (2.6.23), Stefan Rompf, (Thu Dec 6, 4:49 am)
Re: sockets affected by IPsec always block (2.6.23), David Miller, (Thu Dec 6, 4:53 am)
Re: sockets affected by IPsec always block (2.6.23), Stefan Rompf, (Thu Dec 6, 6:56 am)
Re: sockets affected by IPsec always block (2.6.23), David Miller, (Thu Dec 6, 7:13 am)
Re: sockets affected by IPsec always block (2.6.23), Stefan Rompf, (Thu Dec 6, 7:35 am)
Re: sockets affected by IPsec always block (2.6.23), David Miller, (Thu Dec 6, 7:39 am)
Re: sockets affected by IPsec always block (2.6.23), Stefan Rompf, (Thu Dec 6, 8:30 am)
Re: sockets affected by IPsec always block (2.6.23), David Miller, (Thu Dec 6, 9:55 am)
Re: sockets affected by IPsec always block (2.6.23), Stefan Rompf, (Thu Dec 6, 10:31 am)
Re: sockets affected by IPsec always block (2.6.23), David Miller, (Thu Dec 6, 11:20 pm)
Re: sockets affected by IPsec always block (2.6.23), Stefan Rompf, (Fri Dec 7, 5:29 am)
Re: sockets affected by IPsec always block (2.6.23), David Miller, (Wed Dec 5, 3:12 am)
Re: sockets affected by IPsec always block (2.6.23), Stefan Rompf, (Wed Dec 5, 2:42 pm)
Re: sockets affected by IPsec always block (2.6.23), Herbert Xu, (Wed Dec 5, 3:16 am)
Re: sockets affected by IPsec always block (2.6.23), David Miller, (Wed Dec 5, 3:34 am)
Re: sockets affected by IPsec always block (2.6.23), Herbert Xu, (Wed Dec 5, 3:39 am)
Re: sockets affected by IPsec always block (2.6.23), David Miller, (Wed Dec 5, 5:55 am)
Re: sockets affected by IPsec always block (2.6.23), Herbert Xu, (Wed Dec 5, 5:57 am)
Re: sockets affected by IPsec always block (2.6.23), David Miller, (Wed Dec 5, 2:06 am)
speck-geostationary