Increase timeout of HTTPMultipartUpload from 10s to 60s.

This, hopefully, will reduce occurrences of UnfinishedReportUploads. It
will not eliminate it completely because uploads are never retried if
they fail.

60s is actually the default value. Before iOS6, 240s was the default and
minimum applied to requests with a body. Reference:
https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1414063-timeoutinterval?language=objc

Bug:850379
Change-Id: I2f16fda7d7e8cbb8b8a6fc917111d9f646fbdad0
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/1609876
Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
John Z Wu 2019-05-13 13:11:05 -07:00 committed by Mark Mentovai
parent 21b48a72aa
commit b2831dbed1

View File

@ -203,7 +203,7 @@ static NSData *SendSynchronousNSURLRequest(NSURLRequest *req,
NSMutableURLRequest *req =
[[NSMutableURLRequest alloc]
initWithURL:url_ cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0 ];
timeoutInterval:60.0];
NSMutableData *postBody = [NSMutableData data];