zeromq/libzmq — pull request #288 by pieterh (2012-03-22 20:58:51+00:00)
Title: Mark sockets as invalid when closed, not reaped

Previously, sockets were still "valid" after being closed and only marked
as invalid when destroyed. This meant programs could access closed sockets.
Now the socket is marked "invalid" when closed.