Index: util/net/http_transport_win.cc |
diff --git a/util/net/http_transport_win.cc b/util/net/http_transport_win.cc |
index 99f87ba26cc63d0c95ce4c3f66097c6f6d2a4cb4..2fe89deb22ed165e3ac203e464aaa1065d98dcf0 100644 |
--- a/util/net/http_transport_win.cc |
+++ b/util/net/http_transport_win.cc |
@@ -97,6 +97,16 @@ bool HTTPTransportWin::ExecuteSynchronously(std::string* response_body) { |
return false; |
} |
+ int timeout_in_ms = static_cast<int>(timeout() * 1000); |
+ if (!WinHttpSetTimeouts(session.get(), |
+ timeout_in_ms, |
+ timeout_in_ms, |
+ timeout_in_ms, |
+ timeout_in_ms)) { |
+ LogErrorWinHttpMessage("WinHttpSetTimeouts"); |
+ return false; |
+ } |
+ |
URL_COMPONENTS url_components = {0}; |
url_components.dwStructSize = sizeof(URL_COMPONENTS); |
url_components.dwHostNameLength = 1; |