[Mono-dev] After two tried I get a System.Net.WebException: The request timed out
Gonzalo Paniagua Javier
gonzalo at novell.com
Tue May 2 17:45:53 EDT 2006
On Tue, 2006-05-02 at 16:24 -0500, Carlos Solorzano wrote:
> try
> {
>
> System.Net.WebRequest.Create("http://google.com").GetResponse().GetResponseStream().ReadByte();
> Console.WriteLine("new conn " + (i++) );
> }
> catch(Exception ex)
You better Close() the response stream or the response when you're done
with it.
-Gonzalo
More information about the Mono-devel-list
mailing list