Fix read timeout handling.