tcpdrop(8) for DragonFly
dillon at apollo.backplane.com
Sat Nov 13 20:21:09 PST 2004
: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
: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.
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
<dillon at xxxxxxxxxxxxx>
More information about the Submit