Open ashwinraghav opened 12 years ago
We could potentially write another parallel task that would get the list of all declared exchanges and check whether there are real files/directories by that name. If there are none, then, we can send a termination signal to that exchange (that would be delivered to the subscribers. An added advantage over inotify!) and once an ack is received, delete the exchange!
Note that the termination signal needs to be given further thought, especially if we get the ordering in place. We cannot just send a dir-deleted message at an arbitrary time.
Great catch on the bug though.
With regard to #12, ensure exchanges are deleted for dead directories.