Or on unix. We must use shutdown() to do a half-close, which is what well behaved clients and servers do.
<rant> http://cr.yp.to/tcpip/twofd.html </rant>