How do I close a NetworkStream that is being blocked by a Read operation?
- From: "kendalld@xxxxxxxx" <kendalld@xxxxxxxx>
- Date: 9 Feb 2007 07:25:06 -0800
Hi.
I am currently having an issue where I would like to exit a thread
that is being blocked by a Read operation on a NetworkStream. On a
separate thread I've tried calling Close on the NetworkStream and the
underlying TcpClient and they don't stop the Read operation. As far
as I've been able to tell, the Read will timeout @ 120 seconds after
the Close operations are called.
Along these same lines I've tried changing my Read to use BeginRead/
EndRead and it has a similar result.
Thanks for any suggestions.
.
- Follow-Ups:
- Re: How do I close a NetworkStream that is being blocked by a Read operation?
- From: Paul G. Tobey [eMVP]
- Re: How do I close a NetworkStream that is being blocked by a Read operation?
- Prev by Date: Re: question about driver comptibility
- Next by Date: Re: How do I close a NetworkStream that is being blocked by a Read operation?
- Previous by thread: Re: question about driver comptibility
- Next by thread: Re: How do I close a NetworkStream that is being blocked by a Read operation?
- Index(es):