On 4/4/2016 10:31 AM, Joe Touch wrote: > AFAIR, this is the difference between unix close() and shutdown(). The > former disconnects both the connection and the OS endpoint, whereas the > latter "undoes" the corresponding connect() but not the socket creation, > allowing half-open connections (I wonder - is shutdown() implemented for > UDP? does it clear out the remote IP/port expectations?)
Just dug a bit deeper - seems like shutdown() [in man section 3] just decouples the send and receive close of the unix socket, so it still does both connection and OS endpoint operations but decouples send and receive. I have not found an operation that lets you specifically close a TCP connection without affecting the unix socket (i.e., to issue a half close but not disconnect the send side of the OS endpoint) - though that might not have any useful meaning. For UDP, I wonder what happens if you issue multiple connects... (if I have time, I'll try this and check, but if others have experience, let us know) Joe _______________________________________________ Taps mailing list [email protected] https://www.ietf.org/mailman/listinfo/taps
