fix for IO#read_nonblock
Merge pull request #339 from hqmq/michael/github338

fix for IO#read_nonblock