tianshanxuester / gdata-objectivec-client

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

GDataHTTPFetcher stucks on network error #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start uploading of a large file via WiFi using GDataHTTPFetcher.
2. Disconnect WiFi router from the Internet provider (I did it by plugging off 
WAN cable).
3. Main thread of the application will be stuck.

What is the expected output? What do you see instead?
Immediate notification of network error.

What version of the product are you using? On what operating system?
GData Objective-C Client Library release 1.10.0

Please provide any additional information below.
See debugger screenshot for method stack.

Original issue reported on code.google.com by igor.sol...@gmail.com on 4 Oct 2010 at 7:20

Attachments:

GoogleCodeExporter commented 9 years ago
iPhone or Mac OS X, and system version?  With or without garbage collection?

Original comment by gregrobbins on 5 Oct 2010 at 12:49

GoogleCodeExporter commented 9 years ago
Sorry, forgot to mention that. iOS 3.1 and later. Without GC obviously.

Original comment by igor.sol...@gmail.com on 5 Oct 2010 at 5:46

GoogleCodeExporter commented 9 years ago
From the stack, I'd guess it's a deadlock in Apple's NSURLConnection when the 
connection is cancelled.

Does this occur in the simulator or on the device? How about on iOS 4?  

Is fetching being started on the main thread or on an alternate thread?

Original comment by gregrobbins on 6 Oct 2010 at 2:27

GoogleCodeExporter commented 9 years ago
this occurs on the device with iOS 4.0 and later. we didn't try it in the 
simulator.  the fetch is started from the main thread of the application.

I wonder if there is any reason to cancel NSURLConnection if it failed?

Original comment by igor.sol...@gmail.com on 6 Oct 2010 at 7:20

GoogleCodeExporter commented 9 years ago
I've checked in a workaround, 
http://code.google.com/p/gdata-objectivec-client/source/detail?r=574

Please try updating to top-of-trunk sources and testing again.

Original comment by gregrobbins on 7 Oct 2010 at 6:40

GoogleCodeExporter commented 9 years ago
the workaround you provided seems to work for us. I think we can close this 
issue for now. will open a new one if we discover any new problems.

thank you!

Original comment by igor.sol...@gmail.com on 15 Oct 2010 at 7:52

GoogleCodeExporter commented 9 years ago

Original comment by gregrobbins on 15 Oct 2010 at 8:35