Fix read timeout test on Linux