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: Friday, December 7, 2007 - 5:29 am

Am Freitag, 7. Dezember 2007 04:20 schrieb David Miller:


David - I'm aware of this, the discussion is which behaviour is ok. Let's go 
back to a real life example. I've already researched that the squid web proxy 
has a poll() based main loop doing nonblocking connects, may be with multiple 
threads.

Situation: One user wants to access a web page that needs IPSEC. The SA takes 
30 seconds to come up.

a) Non-blocking connect is respected: SYN packets during the first 30 seconds 
will be dropped as you said. Connection can be completed on the next SYN 
retry (timeout in linux: 3 minutes). During this time, the 500 other users 
can continue to browse using the proxy.

b) Non-blocking connect is ignored during IPSEC resolving as you advocate it: 
Connection for the one user can be completed immediatly after IPSEC comes up. 
That's the pro. However, until then, the other 500 proxy user CANNOT ACCESS 
THE WEB because squid's threads are stuck in connect()s on sockets they 
configured not to block. If the IPSEC SA never resolves due to some network 
outage, squid will sleep forever or until an admin configures it that it 
doesn't try to connect the adress in question and restarts it.

Don't you realize how broken this behaviour is? Can you give me ONE example of 
an application that works better with b) and why this outweights the problems 
it creates for everybody else?

Even the DNS example you posted in  
<20071204.231200.117152338.davem@davemloft.net> is wrong because the second 
server will never queried if the kernel puts the process into coma while the 
IPSEC SA to the first server cannot be resolved.

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