Network Stream Read Timeout = -1?

  • Thread starter Thread starter Al G
  • Start date Start date
A

Al G

Does anyone know what a -1 means as a Network stream read timeout?

Console.WriteLine("Timeout= {0}", stream.ReadTimeout)

returns a -1



Thanks

Al G
 
Al G said:
Does anyone know what a -1 means as a Network stream read timeout?

Console.WriteLine("Timeout= {0}", stream.ReadTimeout)

returns a -1

Usually putting the cursor on ReadTimeout and pressing [F1] shows context
sensitiv help. :-)

It says: "The default value, Infinite, specifies that the read operation
does not time out."

Infinite is -1.


Armin
 
Armin Zingler said:
Al G said:
Does anyone know what a -1 means as a Network stream read timeout?

Console.WriteLine("Timeout= {0}", stream.ReadTimeout)

returns a -1

Usually putting the cursor on ReadTimeout and pressing [F1] shows context
sensitiv help. :-)

It says: "The default value, Infinite, specifies that the read operation
does not time out."

Infinite is -1.


Armin

Thanks Armin, I used the help, but didn't find where it actually said
Infinite is -1.

Al G
 
Al G said:
Armin Zingler said:
Al G said:
Does anyone know what a -1 means as a Network stream read
timeout?

Console.WriteLine("Timeout= {0}", stream.ReadTimeout)

returns a -1

Usually putting the cursor on ReadTimeout and pressing [F1] shows
context sensitiv help. :-)

It says: "The default value, Infinite, specifies that the read
operation does not time out."

Infinite is -1.


Armin

Thanks Armin, I used the help, but didn't find where it actually
said Infinite is -1.

Alt+F12 (symbol search): Infinite <enter>


Armin
 
Back
Top