Use selectors when reading instead of busy loop.