From d128f5f6af880e91e21e142615bc1a0df3b18af3 Mon Sep 17 00:00:00 2001 From: ladderbreaker Date: Fri, 16 Mar 2007 18:28:53 +0000 Subject: [PATCH] issue 134: reduce timeout period for minidump upload : reviwer waylonis git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@128 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/mac/HTTPMultipartUpload.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/mac/HTTPMultipartUpload.m b/src/common/mac/HTTPMultipartUpload.m index 7cd77677..d1289953 100644 --- a/src/common/mac/HTTPMultipartUpload.m +++ b/src/common/mac/HTTPMultipartUpload.m @@ -142,7 +142,11 @@ //============================================================================= - (NSData *)send:(NSError **)error { - NSMutableURLRequest *req = [[NSMutableURLRequest alloc] initWithURL:url_]; + NSMutableURLRequest *req = + [[NSMutableURLRequest alloc] + initWithURL:url_ cachePolicy:NSURLRequestUseProtocolCachePolicy + timeoutInterval:10.0 ]; + NSMutableData *postBody = [NSMutableData data]; int i, count;