commit | a071cd996580856476e6b9c3d4d91d1599155c33 | [log] [tgz] |
---|---|---|
author | Alex Vakulenko <avakulenko@google.com> | Fri Nov 13 16:11:17 2015 -0800 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Nov 17 23:42:54 2015 +0000 |
tree | 98c91471a35dc81094c91064fbc5449c0ff86379 | |
parent | 4de62fa88b245130a7d25aa88fb4d0c8205df4aa [diff] [blame] |
weaved: Hook up long-poll HTTP requests for /privet/v3/checkForUpdates libweave now supports log-poll HTTP requests for device state change notifications as described in: https://developers.google.com/cloud-devices/v1/reference/local-api/check_for_updates Made corresponding implementation changes on weaved side. BUG: 23908251 Change-Id: I60f9ad67907645b4164a5e8cf716a0a31e760d72
diff --git a/buffet/webserv_client.cc b/buffet/webserv_client.cc index 3fe5d0c..a66ed3f 100644 --- a/buffet/webserv_client.cc +++ b/buffet/webserv_client.cc
@@ -135,6 +135,12 @@ return https_port_; } +base::TimeDelta WebServClient::GetRequestTimeout() const { + // TODO(avakulenko): obtain the timeout from web server. + // The current timeout is set to 1 minute. + return base::TimeDelta::FromSeconds(60); +} + brillo::Blob WebServClient::GetHttpsCertificateFingerprint() const { return certificate_; }