try to set blocking mode