Fix #4486, Set the sokcet timeout to never by -1

Fixing the stream timeout option. -1 now means never timeout in this function.