Plan 9 from Bell Labs’s /usr/web/sources/patch/tcp-halfduplex-close/readme
Implements TCP half-duplex close. It is needed for Go and may be useful too.