Fix compile warning and timeout message logic in io_stream.c

I could do that, but I thought the "If the timeout was changed, revert to the previous value now" comment was sufficient.