SchedMD/slurm — pull request #89 by artpol84 (2014-11-02 15:12:11+00:00)
Title: eio: remove shutdown'ed connections from eio list.

I am not sure that I have completely correct understanding of eio so this PR can be viewed as RFC.
With current implementation of eio I was unable to find the place in the code where stalled connections are removed from the list. Current use cases in SLURM are fine with this approach since new requests are usually handled inside the callback in following manner:
1. fd = accept();
2. process(fd);
3. close(fd);
But with PMIx we try to benefit from nonblocking connections and if the message can't be read right at accept time it's processing will be deferred and fd will be added into the eio handler. Once message is received fd can be closed and I don't need this connection in eio list anymore.
The PR provides my vision of a fix for that problem.