By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,728 Members | 1,404 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,728 IT Pros & Developers. It's quick & easy.

Network Stream Read Timeout = -1?

P: n/a
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


Oct 12 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Al G" <ag*******@nospam.charter.netschrieb
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

Oct 12 '07 #2

P: n/a

"Armin Zingler" <az*******@freenet.dewrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
"Al G" <ag*******@nospam.charter.netschrieb
>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

Oct 12 '07 #3

P: n/a
"Al G" <ag*******@nospam.charter.netschrieb
>
"Armin Zingler" <az*******@freenet.dewrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
"Al G" <ag*******@nospam.charter.netschrieb
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
Oct 13 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.