Fix compile warning and timeout message logic in io_stream.c

This is for reverting. When `(timeout && timeout != socketTimeoutMS)` at the start of the function, we set `rtimeout` based on `timeout` (call-time option). Here, we check for that same condition and need to set `rtimeout` based on `socketTimeoutMS` (global option).