'Remove a 0MQ socket or native fd for I/O monitoring.
Parameters
socket : Socket
The socket instance to stop polling.'

def unregister(self, socket):

    idx = self._map.pop(socket)
    self.sockets.pop(idx)
    for (socket, flags) in self.sockets[idx:]:
        self._map[socket] -= 1
