changed read timeout for nonblocking read