tcp: select(writefds) don't hang up when a peer close connection