Set SO_UPDATE_ACCEPT_CONTEXT on sockets from AcceptEx so that shutdown() can work Based on patch (and lots of debugging work) by Kelly Brock.