mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-17 16:43:53 +00:00
handler/mac: Increase the upload timeout from the default 15s to 60s.
R=mark@chromium.org Review URL: https://codereview.chromium.org/1008623002
This commit is contained in:
parent
7edad7c412
commit
94471409a1
@ -343,13 +343,14 @@ CrashReportUploadThread::UploadResult CrashReportUploadThread::UploadReport(
|
|||||||
report->file_path,
|
report->file_path,
|
||||||
"application/octet-stream");
|
"application/octet-stream");
|
||||||
|
|
||||||
// TODO(mark): There should be a timeout option for upload.
|
|
||||||
scoped_ptr<HTTPTransport> http_transport(HTTPTransport::Create());
|
scoped_ptr<HTTPTransport> http_transport(HTTPTransport::Create());
|
||||||
http_transport->SetURL(url_);
|
http_transport->SetURL(url_);
|
||||||
HTTPHeaders::value_type content_type =
|
HTTPHeaders::value_type content_type =
|
||||||
http_multipart_builder.GetContentType();
|
http_multipart_builder.GetContentType();
|
||||||
http_transport->SetHeader(content_type.first, content_type.second);
|
http_transport->SetHeader(content_type.first, content_type.second);
|
||||||
http_transport->SetBodyStream(http_multipart_builder.GetBodyStream().Pass());
|
http_transport->SetBodyStream(http_multipart_builder.GetBodyStream().Pass());
|
||||||
|
// TODO(mark): The timeout should be configurable by the client.
|
||||||
|
http_transport->SetTimeout(60.0); // 1 minute.
|
||||||
|
|
||||||
if (!http_transport->ExecuteSynchronously(response_body)) {
|
if (!http_transport->ExecuteSynchronously(response_body)) {
|
||||||
return UploadResult::kRetry;
|
return UploadResult::kRetry;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user