Merge pull request #2 from Shouren/master

nonblocking IO with select