Background :

This is related to my earlier post about copying data using streams (from a
network stream to a file stream)

http://mono-for-android.1047100.n5.nabble.com/Copy-from-a-file-stream-to-another-file-stream-interruped-by-INTERRUPTION-REQUESTED-HANDLE-td5710364.html

We started using .net 4.0's inputStream.CopyTo(outputStream) instead of
doing the stream copy ourselves via code.

Since then we have been experiencing this 'Timeout error' intermittently.

Specifically we receive

/: The operation has timed out.   at System.Net.WebConnectionStream.Read
(System.Byte[] buffer, Int32 offset, Int32 size) [0x00000] in <filename
unknown>:0 

06-15 13:44:42.580 E/app( 9706):   at System.StreamEx.CopyStreamTo
(System.IO.Stream input, System.IO.Stream output) [0x00088] in
C:\Code\blah\Extensions\StreamEx.cs:68 /

Code in question is 

/ public static void CopyStreamTo(this Stream input, Stream output)
        {
            input.CopyTo(output);
}/

To narrow down the problem, we have performed some tests (per 12 MB file
size copy operation using streams) on different devices with the following
results:

•       Samsung Galaxy S running Froyo 2.2 – No problems (tested 5 times in a 
row) 
•       Vizio VTAB1008 running Honeycomb 3.1 – No problems (tested 10 times in a
row)
•       Samsung Galaxy S 4G running Gingerbread 2.3.3 – No Problems (tested 3
times in a row)
•       Samsung Galaxy Tab 7 running Honeycomb 3.2 – No Problems (tested 5 times
in a row)
•       Samsung Galaxy S II running ICS 4.0.3 - FAILED
•       Acer Iconia A500 running Homeycomb 3.1 – No Problem (10 times)
•       Acer Iconia A500 running ICS 4.0.31 – FAILED

So everything pointing to ICS or Mono running on ICS. We are running the
latest monodroid version.

Would you any have thoughts/hints/suggested changes in light of these
observations?

Why would the copy work on earlier versions of android and not on ICS?

Thanks,
Kshitij 



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/The-operation-has-timed-out-at-System-Net-WebConnectionStream-Read-tp5710458.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to