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 3 4508
"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
"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
"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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Yechezkal Gutfreund |
last post by:
I have been using the following code (successfully) to read Xml formated
text packets from a TCP stream. The output from the server stream consists
of a sequence of well formed Xml documents...
|
by: Scott |
last post by:
Hi guys,
If I try to call read(), readline(), readtoend() and
there is nothing to read (from a never ending loop for
example) the program seems to continue but it exits the
loop for no apparent...
|
by: simonrigby_uk |
last post by:
Hi all,
Sorry if this is the incorrect group but I couldn't see anything
directly relevant.
Can someone confirm for me what happens when two network streams are
sent to an application at the...
|
by: carmelo8 |
last post by:
Hi there,
I want to timeout Read method of System.Stream class after 30 secs. of
no activity given a certain opened connection. That is, because some
incoming connections to my application just...
|
by: Sir Psycho |
last post by:
Hi,
For some reason, when i step over this code, it returns the full byte
stream im expecting from the server, however when I let it run with no
intervention, it only seems to grab a small chunk...
|
by: vishnu |
last post by:
Hi,
Am trying to post the data over https and am getting error in
httpwebresponse.getResponseStream.Please help me to get rid of this
issue.
Here is the message from immediate window
...
|
by: Ryan Liu |
last post by:
Hi,
I have a 100 clients/ one server application, use ugly one thread pre client
approach. And both side user sync I/O.
I frequently see the error on server side(client side code is same, but...
|
by: =?Utf-8?B?SnVhbg==?= |
last post by:
Hi!
I want to use ASP to download big files using ADODB.STREAM. It works very
fine with files smaller than 80 MB.
On the Webserver I can see that memory allocation and the process w3wp is...
|
by: =?Utf-8?B?VHJlY2l1cw==?= |
last post by:
Hello, Newsgroupians:
In regards to reading a stream, I know we use the Read() method. One could
implement reading a stream using a while-loop.
while (stream.Read(buffer, 0, buffer.Length) !=...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |