[Mono-dev] HttpWebResponse ConnectStream blocks on empty stream

Arne Claassen arnec at mindtouch.com
Tue Feb 3 23:17:56 EST 2009


Cool. I'll check out 2.4.. saves me from filing a bug :)

Arne Claassen

MindTouch
San Diego, CA
http://twitter.com/sdether

On Feb 3, 2009, at 7:45 PM, Gonzalo Paniagua Javier wrote:

> 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
>
>
>



More information about the Mono-devel-list mailing list