improve - use select with 1 sec timeout for NioProcessor