Messages in this thread | | | From | kuznet@ms2 ... | Subject | Re: [patch] fix for accept on unix-domain sockets | Date | Thu, 28 Oct 1999 23:32:13 +0400 (MSK DST) |
| |
Hello!
> The reason is, that skb_recv_datagram is used get incoming connection requests, but this checks > if a SOCK_STREAM socket is in TCP_ESTABLISHED state before waiting.
Opla! Thank you.
The patch is incorrect (racy), but you can make correct one if copy part of skb_recv_datagram, omitting offending line and some useless checks (f.e. sk->shutdown, socket_error() etc)
Alexey Kuznetsov
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |