TcpClient read/write timeouts do not timeout
- From: Zytan <zytanlithium@xxxxxxxxx>
- Date: Mon, 21 Jul 2008 08:11:48 -0700 (PDT)
I have a TcpClient. I set the read/write timeouts at 1 minute (in
milliseconds). I get a NetworkStream from it and confirm the timeouts
still exist. I do a NetworkStream.Write() and then a
NetworkStream.Read(). Sometimes it sits and waits -- on the Write()
or the Read() -- for 15 minutes before I get fed up and close the
app.....
I am not connecting to a TcpListener. I am connecting to a Socket
with ProtocolType.Tcp, which is acceptable. These read/writes
normally work, but when I get 3 or 4 TcpClients all connecting at the
same time, connection problems start. I don't understand why some of
the connections fail. And, when they do fail, why don't the timeouts
work?
I believe I have a bug in the server, but still, the timeouts should
timeout.
.
- Follow-Ups:
- Re: TcpClient read/write timeouts do not timeout
- From: Zytan
- Re: TcpClient read/write timeouts do not timeout
- From: Peter Duniho
- Re: TcpClient read/write timeouts do not timeout
- Prev by Date: Re: XML, LINQ and Server.MathPath
- Next by Date: Re: Captured variables
- Previous by thread: XML, LINQ and Server.MathPath
- Next by thread: Re: TcpClient read/write timeouts do not timeout
- Index(es):
Relevant Pages
|