On Mon, Apr 17, 2000 at 03:06:32PM +0200, Hirokazu Takahashi wrote:
> Hello,
> 
> I have another problem I'd like to solve.
> 
> I've seen a ESTABLIED socket which have no peer.
> When a client attempt to connect to the server on linux,
> linux may release a SYN_RECV connection silently and 
> does not notiy to the client.
> 
> 
> RFC916 says
>         - A CLOSE request is made by the user.  Create a packet with
>           FIN set.  Send it and go to the FIN-WAIT state.
> 
> I think sendig FIN is required when closing SYN_RECV connections
> even if they are on a backlog-queue(sk->tp_pinfo.af_tcp.syn_wait_queue), 
> but Linux releases SYN_RECV connections without anything.
> Or it would not be bad idea to send reset (RST) to the peer
> than doing nothing.

RST is not good when the SYN-RECV ACK has not been received yet -- you
risk killing innocent connections because only after the three way handshake
you're fully synchronized. FIN is not good neither. For Established sockets
we already do the right thing.

-Andi


-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to