Re: WebRequest times out...but only 3rd time and on...
- From: "Jon Skeet [C# MVP]" <skeet@xxxxxxxxx>
- Date: 23 Feb 2006 06:33:06 -0800
Tim Cowan wrote:
I put this code in a windows forms app for testing. The IP values are both
correct. It works the first time, the second time but at the third time it
fails with timeout... I have it running here AND in a service with a 30
minute interval.
1. Am I doing this correclty? Is there a better way to go to a URI and pass
a couple of variables?
I don't have time to look at the rest of your code in detail at the
minute, but I believe the problem is that you're not disposing of the
WebResponse. If you do, you should notice everything being fine. .NET
is happy to have two connections up at a time, but your existing
responses are "hogging" the connections it's made.
Jon
.
- Follow-Ups:
- Re: WebRequest times out...but only 3rd time and on...
- From: Tim Cowan
- Re: WebRequest times out...but only 3rd time and on...
- References:
- WebRequest times out...but only 3rd time and on...
- From: Tim Cowan
- WebRequest times out...but only 3rd time and on...
- Prev by Date: Re: Regarding Connection object behaviour
- Next by Date: Re: C# pure xml database?
- Previous by thread: WebRequest times out...but only 3rd time and on...
- Next by thread: Re: WebRequest times out...but only 3rd time and on...
- Index(es):
Relevant Pages
|