[Mono-bugs] [Bug 661830] New: Stream reading from HTTPWebResponse (downloading) timed-out if a ServiceHost with any bindings

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Dec 30 04:19:58 EST 2010


https://bugzilla.novell.com/show_bug.cgi?id=661830

https://bugzilla.novell.com/show_bug.cgi?id=661830#c0


           Summary: Stream reading from HTTPWebResponse (downloading)
                    timed-out if a ServiceHost with any bindings
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.8.x
          Platform: i386
        OS/Version: RHEL 5
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: io-layer
        AssignedTo: lupus at novell.com
        ReportedBy: syed.husain at nexusondemand.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=406576)
 --> (http://bugzilla.novell.com/attachment.cgi?id=406576)
A sample program which simulate the download of a file, and after 15 seconds,
starts a Service Host which will make the download timed-out

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10

A Stream reading from HTTPWebResponse will timed-out if there's ServiceHost
instantiate with any type of bindings - I've tested it using BasicHttpBinding
and NetTcpBinding. This can be proven if the file is big enough.

If you look at the attachment, the code stop at Line 89 :

          currentDownloadChunks = resStream.Read(readBytes, 0,
_downloadChunks);

Note : Most probably this code will work on Mono 2.6.7,but not Mono 2.8.1

Reproducible: Always

Steps to Reproduce:
1.Edit the sample program with the location of download file of your choice
2.The download file must be big, preferably 50Mb.
3.Run the program
4.After the Service Host has been instantiate, wait a few seconds and it will
stop reading from the Stream.
Actual Results:  
Exception "The operation has timed out" will occurred.

Expected Results:  
The download finish

I'm running on Mono 2.8.1 which I build from source. Here are the steps that I
took to build it:

build libgdiplus, mono-2.8.1, mod-mono, xsp

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list