Re: EAGAIN and Linux 2.6 IPsec patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 30 Sep 2003 21:34:24 +1000
Herbert Xu <herbert@gondor.apana.org.au> wrote:

> OK, this looks like a bug that is independent of the packet queueing issue.
> 
> TCP/UDP connects do a route/IPSEC lookup to determine information
> about the connection.  The IPSEC lookup can fail with EAGAIN if the
> policy is in place without any SAs.
> 
> Since connect already has an O_NONBLOCK bit we should make it try
> harder if it is clear.
> 
> The following (untested) patch tries to do that.

Please don't do this, any attempt to fix the EAGAIN behavior
with hacks like this are riddled with problems.

Several patches nearly identical to your's have been submitted
in the past.

Alexey is supposed to work on support for unresolved routes, which
is the proper way to fix this problem.
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux