netdev
[Top] [All Lists]

[PATCH] Fix for broken unix_accept

To: netdev@xxxxxxxxxxx
Subject: [PATCH] Fix for broken unix_accept
From: Lars Heete <hel@xxxxxxxx>
Date: Mon, 13 Dec 1999 09:46:24 +0100
Sender: owner-netdev@xxxxxxxxxxx
Hello,

the accept call on unix-domain sockets in current 2.3 Linux is broken.
Instead of waiting for an incoming connection, it returns ENOTCONN. The problem 
is the use
of skb_recv_datagram, which checks for TCP_ESTABLISHED state before waiting.
My solution is to use an own unix_wait_for_connect function, similar to 
wait_for_packet
in core/datagram.c, but without unneeded error checks.

Lars Heete

Attachment: unix-accept.diff
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>