[Mono-dev] HttpWebResponse ConnectStream blocks on empty stream

Gert Driesen gert.driesen at telenet.be
Fri Feb 6 07:12:22 EST 2009


Hey Gonzalo,

This does not appear to be fixed in SVN HEAD.
It always takes 15 seconds (while I've explicitly set the ReadWriteTimeout
to 50 seconds) to get the zero length response.

I'm testing this on Windows.
I get the exact same behavior on Linux with an older revision of Mono.
I'll update my Linux version after I've added unit tests or standalone tests
for a few more fixes.

Gert

-----Original Message-----
From: mono-devel-list-bounces at lists.ximian.com
[mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Gonzalo
Paniagua Javier
Sent: woensdag 4 februari 2009 4:45
To: Arne Claassen
Cc: mono-devel-list at lists.ximian.com
Subject: Re: [Mono-dev] HttpWebResponse ConnectStream blocks on empty stream

On Tue, 2009-02-03 at 09:29 -0800, Arne Claassen wrote:
> I've been having a problem with HttpWebResponse locking up on
> GetResponseSream and BeingGetResponseStream never returning on
> responses that have no content-length header and no content. On .NET
> this will return immediately, but on mono (1.9.1, 2.0.1 and 2.02) the
> read will block only to be killed if the request itself has a timeout.
> A simple repro is to his a site, get it's Etag/LastModified and hit it
> again for the 304 response which should have no content. However
> getting that response stream still shouldn't lock up.

This issue has already been fixed. I don't know if it made it to 2.2,
but the fix will be for sure in the upcoming 2.4.

-Gonzalo



_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Internal Virus Database is out of date.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.10.15/1923 - Release Date: 1/29/2009
7:13 AM



More information about the Mono-devel-list mailing list