AmitaiB / gtm-http-fetcher

Automatically exported from code.google.com/p/gtm-http-fetcher
Other
0 stars 0 forks source link

ignore image files on logging #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. [GTMHTTPFetcher setLoggingEnabled:YES];
2. many request on load image from google photo

What is the expected output? What do you see instead?

NSPOSIXErrorDomain Code=24 "The operation couldn't be completed. Too many open 
files"

What version of the product are you using? On what operating system?

v99, iOS 5.0

Please provide any additional information below.

I need to load photos on google photo. When the flag of logging is enable, 
logger will save image data and other to iOS device.

But iOS device can't open too many files in a short time, That I got error.

I need a way to setup a ignore list for GTMHTTPFetcherLogging, which data need 
to ignore or log.

Original issue reported on code.google.com by superbil on 5 Mar 2012 at 10:06

GoogleCodeExporter commented 9 years ago
The logging code doesn't keep open photo files.

If you're trying to simultaneously download many photos, that could be a 
problem for iOS. Try creating an instance of GTMHTTPFetcherService, and using 
that service object to create the fetchers to download photos. The service will 
limit the rate of photo requests.

Original comment by grobb...@google.com on 10 Mar 2012 at 2:44

GoogleCodeExporter commented 9 years ago
I got it, thank you

Original comment by superbil on 27 Jul 2012 at 4:42

GoogleCodeExporter commented 9 years ago

Original comment by grobb...@google.com on 28 Jul 2012 at 1:08