DragonFly BSD
DragonFly submit List (threaded) for 2004-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: tcpdrop(8) for DragonFly


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Sat, 13 Nov 2004 20:20:05 -0800 (PST)

:OK, I updated the patch but I used soabort(). I tried both soshutdown()
:and sodisconnect(), but they leave the connection in one of the *_WAIT TCP
:states.
:
:soabort() will call so_pru_abort(), which sends a message containing a
:pointer to tcp_usr_abort(), which finally calls tcp_drop(), so it seems to
:be the correct way to do it.
:...
:Andre

    Well, a TIME_WAIT state is actually more correct, depending on whether
    the connection is incoming or outgoing.  It will go away in < ~2 minutes
    on its own.  tcp_drop() will throw away the control block and the
    problem with that is that the remote end will not be notified about
    the disconnection until/unless it actually tries to send another packet.
    I would far prefer that shutdown be used, assuming no other issues
    pop up.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>



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