Re: more tcpdumpinfo for nfs3 problem: aix-server --- linux 2.4.15pre5 client

kuznet@ms2.inr.ac.ru
Mon, 19 Nov 2001 21:49:05 +0300 (MSK)


Hello!

> Alexey: Do you have any comments? Is it correct to check for
> sock_writeable() on a TCP socket?

No. sock_writable() is for datagram sockets, TCP never used or
satisfied this predicate, it used(s) more interesting one.

BTW applications need not use this anyway, we do not awake people
for no reasons. If a write failed with EAGAIN, wakeup will happen
only when there is some room for write. And it will not be awaken
again until the next write will fail. So, if you rejected wakeup
(due to wrong predicate), nobody will remind you again.

Alexey
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/