isnotajoke/vSPC.py — comment on commit a19804ada5b57178276517eb9af0003384bf884f
File: vSPC.py line 841
By isnotajoke:

Another problem with using the Selector as we have (at least in this commit) is that it'll notify the vSPC of an event continuously until the vSPC has finished processing that event. If the event is a connection abort, then the first task on the task queue might close the connection, then all of the others might cause abort_vm_connection to be invoked. This stanza handles that case gracefully. This is another of the problems that motivated me to use a Poller for this sort of thing.