angelazno / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Upload timeout - happening after 100 [s] #434

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Upload a photo that is large enough to take more than 100[s] to complete

What is the expected output? What do you see instead?
Instead of successfully uloaded photo there is the following error communicate: 

"The request was aborted. The request was canceled. Cannot close stream until 
all bytes are written" 

Please use labels and text to provide additional information.

Original issue reported on code.google.com by cccpc...@interia.pl on 12 Oct 2010 at 1:30

GoogleCodeExporter commented 8 years ago
This is output from logger: 

System.Net.Sockets Verbose: 0 : [3028] 000003C0 : F6 3E 72 AC F9 EA 36 D6-87 37 
71 74 86 52 84 C0 : .>r...6..7qt.R..
System.Net.Sockets Verbose: 0 : [3028] 000003D0 : 18 C6 AC 63 8B 01 A7 EB-F9 30 
F5 AA AF 6D 75 70 : ...c.....0...mup
System.Net.Sockets Verbose: 0 : [3028] 000003E0 : CA 04 2D 63 E6 7C CC 2F-06 73 
DF 71 20 F3 9E D8 : ..-c.|./.s.q ...
System.Net.Sockets Verbose: 0 : [3028] 000003F0 : E7 A5 7A 30 9F B3 3C AA-F2 6E 
4E 31 5A 94 9E 0B : ..z0..<..nN1Z...
System.Net.Sockets Verbose: 0 : [3028] Exiting Socket#14854669::Send()  -> 
4096#4096
System.Net.Sockets Verbose: 0 : [3028] Socket#14854669::Send()
System.Net.Sockets Verbose: 0 : [3332] Socket#14854669::Dispose()
System.Net.Sockets Error: 0 : [3028] Exception in the Socket#14854669::Send - A 
blocking operation was interrupted by a call to WSACancelBlockingCall
System.Net.Sockets Verbose: 0 : [3028] Exiting Socket#14854669::Send()  -> 0#0

Original comment by cccpc...@interia.pl on 12 Oct 2010 at 1:31

GoogleCodeExporter commented 8 years ago
This is the code used to upload image: 

Uri postUri = new Uri(PicasaQuery.CreatePicasaUri(Credential_UserID, albumID));

            //call Picasa remote service posting image binary

            String contentType = FileFormatManager.GetMIME(fileName);

            PicasaEntry insertedEntry = (PicasaEntry)PicasaServiceToken.Insert(postUri, fileStream, contentType, fileName);

Original comment by cccpc...@interia.pl on 12 Oct 2010 at 1:34